Previously messages appeared as part of Withdraw event in ForeignBridge contract were put as is into the map messages. When the new module MessageToMainnet was introduced some integer values from messages were presented with little endian encoding. This causes bug in handling value and homeGasPrice on HomeBridge side and final transfer of funds cannot be completed.
Investigation is required to understand if it is necessary to use little endian encoding at all.
As soon as the issue is fixed changes to withdraw() of HomeBridge contract need to be applied to remove the workaround.
Previously messages appeared as part of
Withdraw
event in ForeignBridge contract were put as is into the mapmessages
. When the new moduleMessageToMainnet
was introduced some integer values from messages were presented with little endian encoding. This causes bug in handlingvalue
andhomeGasPrice
on HomeBridge side and final transfer of funds cannot be completed.Investigation is required to understand if it is necessary to use little endian encoding at all.
As soon as the issue is fixed changes to
withdraw()
of HomeBridge contract need to be applied to remove the workaround.