Get the message length from the bridge contract
akolotov opened this issue · 0 comments
akolotov commented
Currently the length of message to withdrawal is hard coded:
and it is also hard coded in the bridge code:
So, it is necessary to change the length in both places if format of the message is being changed.
As soon as the issue omni/tokenbridge-contracts#39 is addressed in the bridge contract, it is necessary to change the bridge code as so the bridge calls the new method during startup sequence and gets actual value for the message. It will reduce amount of work when new bridge contracts are being introduced.