Blockchain explorer for Ethereum based network and a tool for inspecting and analyzing EVM based blockchains.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
blockscout/test/support/factories/transaction_receipt_factory.ex

15 lines
388 B

defmodule Explorer.TransactionReceiptFactory do
defmacro __using__(_opts) do
quote do
def transaction_receipt_factory do
%Explorer.TransactionReceipt{
cumulative_gas_used: Enum.random(21_000..100_000),
gas_used: Enum.random(21_000..100_000),
status: Enum.random(1..2),
index: sequence(""),
}
end
end
end
end