From f297d27291761581e159734f299cd2c6f628e974 Mon Sep 17 00:00:00 2001 From: Grant Wuerker Date: Tue, 11 Apr 2023 12:15:52 -0600 Subject: [PATCH] hacking --- crates/tests/fixtures/files/contract_abi.fe | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/tests/fixtures/files/contract_abi.fe b/crates/tests/fixtures/files/contract_abi.fe index 89fa3f7db7..1d46a0afd6 100644 --- a/crates/tests/fixtures/files/contract_abi.fe +++ b/crates/tests/fixtures/files/contract_abi.fe @@ -21,6 +21,7 @@ contract MyContract { pub unsafe fn __call__(mut self, ctx: Context) { let selector: u256 = ctx.msg_sig() + if selector == 0xe5d5dfbc { // set_foo let mut in_buf: CalldataBuffer = CalldataBuffer::new(start: 4, end: 36) @@ -43,6 +44,7 @@ contract MyContract { unsafe fn contract_call() { let mut ctx: Context = Context() let mut my_contract: MyContractInterface = MyContractInterface(address(MyContract.create(ctx, 0))) + assert my_contract.get_foo() == 0 my_contract.set_foo(foo: 42) assert my_contract.get_foo() == 42 } \ No newline at end of file