With recent changes to registering destinations on the source bridge, and separate fee changes, there was an additional external registerWithSource call. This call takes in a fee but needs to be transferred to the bridge contract before sending Teleporter message, otherwise would revert.
How this works
Moves logic into helper _handleFees, and calls handling of fees for registerWithSource
How this was tested
Updated e2e tests to deploy a new example ERC20 token to use as fees for registering with source.
Why this should be merged
With recent changes to registering destinations on the source bridge, and separate fee changes, there was an additional external
registerWithSource
call. This call takes in a fee but needs to be transferred to the bridge contract before sending Teleporter message, otherwise would revert.How this works
Moves logic into helper
_handleFees
, and calls handling of fees forregisterWithSource
How this was tested
Updated e2e tests to deploy a new example ERC20 token to use as fees for registering with source.
How is this documented
comments