eosnetworkfoundation / evm-bridge-contracts

Contracts to support the trustless bridge of the EOS EVM
MIT License
1 stars 2 forks source link

Integration test that uses WASM/ABI of EOS EVM Contract #12

Closed arhag closed 1 year ago

arhag commented 1 year ago

Currently, the tests use a simple stub for the interaction needed between the bridge contracts and the EOS EVM Contract.

Integration tests that use the actual EOS EVM Contract are also needed (though this is called an integration test, the Boost unit test framework with libtester can still be used to implement these tests). That means having access to the .wasm and .abi files of a compiled EOS EVM Contract (the variant compiled with test actions off to keep it the same as what will be deployed to production).

This means the CMake setup will need to be augment to provide the build path for the EOS EVM Contract, which is now added as a new dependency for this project that must be documented in the README.

It also means that the CI should be updated to automatically pull the build artifacts for EOS EVM Contract from the eos-evm repo CI so that this dependency can be met when building and running the integration tests in the CI for evm-bridge-contracts. Note the CI part was already completed as part of https://github.com/eosnetworkfoundation/evm-bridge-contracts/pull/14.