SRC14 Proxy implementation is not working for some Orderbook test cases

Some Orderbook test cases fail with transaction revert after moving orderbook interaction via SRC14 Proxy.

Steps:
-Checkout the code from GitHub - compolabs/orderbook-contract at feat-proxy

  • forc build --release
  • cargo test --release

Expected:
All tests succeed

Actual:
test result: FAILED. 35 passed; 50 failed; 12 ignored; 0 measured; 0 filtered out; finished in 6.15s
Simple getter tests fails. As ex.
---- functions::info::matcher_fee::success::returns_matcher_fee stdout ----
Error: transaction reverted: Revert(0), receipts: [Call { id: 0000000000000000000000000000000000000000000000000000000000000000, to: bbce9a8d7ab092a29a626f112c27c5b982032426989c96128eb10e8fe42070e9, amount: 0, asset_id: 0000000000000000000000000000000000000000000000000000000000000000, gas: 99993207, param1: 10480, param2: 10499, pc: 11776, is: 11776 }, Revert { id: bbce9a8d7ab092a29a626f112c27c5b982032426989c96128eb10e8fe42070e9, ra: 0, pc: 106280, is: 11776 }, ScriptResult { result: Revert, gas_used: 5856 }]

Fixed by Storage initialization

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.