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",
"inputs": [
{
"address": "0xdeadbeef00000000000000000000000000000042",
"expected_balance": "1233"
},
{
"instance": "WBTC_1",
"method": "#deployer",
+1 -1
View File
@@ -527,7 +527,7 @@ where
&mut self,
BalanceAssertion {
address: address_string,
amount,
expected_balance: amount,
}: &BalanceAssertion,
node: &T::Blockchain,
) -> anyhow::Result<()> {
+1 -1
View File
@@ -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)]