Test balance deserialization

This commit is contained in:
Omar Abdulla
2025-08-11 14:40:01 +03:00
parent 71a05c3f47
commit 029aeccba3
3 changed files with 6 additions and 2 deletions
+4
View File
@@ -8,6 +8,10 @@
{ {
"name": "first", "name": "first",
"inputs": [ "inputs": [
{
"address": "0xdeadbeef00000000000000000000000000000042",
"expected_balance": "1233"
},
{ {
"instance": "WBTC_1", "instance": "WBTC_1",
"method": "#deployer", "method": "#deployer",
+1 -1
View File
@@ -527,7 +527,7 @@ where
&mut self, &mut self,
BalanceAssertion { BalanceAssertion {
address: address_string, address: address_string,
amount, expected_balance: amount,
}: &BalanceAssertion, }: &BalanceAssertion,
node: &T::Blockchain, node: &T::Blockchain,
) -> anyhow::Result<()> { ) -> anyhow::Result<()> {
+1 -1
View File
@@ -57,7 +57,7 @@ pub struct BalanceAssertion {
pub address: String, pub address: String,
/// The amount of balance to assert that the account or contract has. /// 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)] #[derive(Clone, Debug, Serialize, Deserialize, Eq, PartialEq)]