So reach and replace lib/teleporter-token-bridge/contracts/src/ERC20Source.sol:ERC20Source => lib/teleporter-token-bridge/contracts/src/TokenHub/ERC20TokenHub.sol:ERC20TokenHub and so on for all other source and destination contracts.
Spoke registration
The function name for registering a source (spoke) with a destination (hub) has changed:
Could you run through all instructions real quick for the different bridges? I tried out 6-erc20-to-native-bridge and had some minor issues (missing constructor arg).
Preparation
forge update
Migration
Update the instructions. Limit the search and replace to the
/src/*
of the Avalanche Starter Kit.Contract file names
Needs to turn into
So reach and replace
lib/teleporter-token-bridge/contracts/src/ERC20Source.sol:ERC20Source
=>lib/teleporter-token-bridge/contracts/src/TokenHub/ERC20TokenHub.sol:ERC20TokenHub
and so on for all other source and destination contracts.Spoke registration
The function name for registering a source (spoke) with a destination (hub) has changed:
Search and replace:
registerWithSource(
=>registerWithHub(
Verify
Run all instructions and see if everything still wotks