diff --git a/assets/test_metadata.json b/assets/test_metadata.json index 6d54584..7fca971 100644 --- a/assets/test_metadata.json +++ b/assets/test_metadata.json @@ -8,6 +8,10 @@ { "name": "first", "inputs": [ + { + "address": "0xdeadbeef00000000000000000000000000000042", + "expected_balance": "1233" + }, { "instance": "WBTC_1", "method": "#deployer", diff --git a/crates/core/src/driver/mod.rs b/crates/core/src/driver/mod.rs index 1f72021..87785e6 100644 --- a/crates/core/src/driver/mod.rs +++ b/crates/core/src/driver/mod.rs @@ -527,7 +527,7 @@ where &mut self, BalanceAssertion { address: address_string, - amount, + expected_balance: amount, }: &BalanceAssertion, node: &T::Blockchain, ) -> anyhow::Result<()> { diff --git a/crates/format/src/input.rs b/crates/format/src/input.rs index 437b5d5..c0f70a5 100644 --- a/crates/format/src/input.rs +++ b/crates/format/src/input.rs @@ -57,7 +57,7 @@ pub struct BalanceAssertion { pub address: String, /// The amount of balance to assert that the account or contract has. - pub amount: U256, + pub expected_balance: U256, } #[derive(Clone, Debug, Serialize, Deserialize, Eq, PartialEq)]