12 lines
321 B
Ruby
12 lines
321 B
Ruby
# frozen_string_literal: true
|
|
|
|
FactoryBot.define do
|
|
factory :transaction do
|
|
currency { Currency.all.sample }
|
|
txid { Faker::Lorem.characters(64) }
|
|
from_address { Faker::Blockchain::Bitcoin.address }
|
|
to_address { Faker::Blockchain::Bitcoin.address }
|
|
amount { Kernel.rand(100..10_000).to_d }
|
|
end
|
|
end
|