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/receipt_factory.ex

15 lines
353 B

defmodule Explorer.ReceiptFactory do
defmacro __using__(_opts) do
quote do
def receipt_factory do
%Explorer.Receipt{
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