eosnetworkfoundation / evm-bridge-contracts

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

Use assertnonce whenever doing a contract deployment #8

Closed stephenpdeos closed 1 year ago

stephenpdeos commented 1 year ago

Dependent on https://github.com/eosnetworkfoundation/eos-evm/issues/645 and https://github.com/eosnetworkfoundation/eos-evm/issues/612

Places in the code where a nonce is needed to calculate the contract address, the nonce value is retrieved from the internal tables of the eos evm contract. As extra precaution, we should assert that the retrieved nonce is correct by sending an inline assertnonce action to the eos evm contract with the retrieved value of the nonce.