Skip to content

Commit

Permalink
test: assert decimal is nil on out_of_gas_error (#769)
Browse files Browse the repository at this point in the history
  • Loading branch information
jyeshe committed Jul 5, 2022
1 parent 922f7d8 commit af41a5c
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,14 @@ defmodule Integration.AeMdwWeb.Aex9ControllerTest do
} = response["data"]

assert contract_txi == Origin.tx_index!(state, {:contract, aex9_pubkey})
assert is_integer(decimals) and decimals >= 0
assert is_binary(name)
assert is_binary(symbol)

if name == "out_of_gas_error" do
assert is_nil(decimals)
else
assert is_integer(decimals) and decimals >= 0
end
end)
end
end
Expand Down

0 comments on commit af41a5c

Please sign in to comment.