if i remove the ensure_funds line it fails with assertion failed: self.balance >= *x', /Users/basilisk/.cargo/git/checkouts/parity-dc9825eb65b3adf1/7c 2c4c8/ethcore/src/state/account.rs:351:2 instead which is to be expected as the account doesn't have any funds
i've added a simple test that checks whether
msg.value
in a contract function matches the value passed toevm.with_value
: https://github.com/paritytech/sol-rs/blob/36061c16226c7a8c6b564c5c4c923ecd47152959/tests/tests/test.rs#L57it fails with
Unable to top up account.
here https://travis-ci.org/paritytech/sol-rs/builds/319662624#L1045https://github.com/paritytech/sol-rs/blob/36061c16226c7a8c6b564c5c4c923ecd47152959/tests/tests/test.rs#L77
if i remove the
ensure_funds
line it fails withassertion failed: self.balance >= *x', /Users/basilisk/.cargo/git/checkouts/parity-dc9825eb65b3adf1/7c 2c4c8/ethcore/src/state/account.rs:351:2
instead which is to be expected as the account doesn't have any funds