Skip to content

Commit

Permalink
Fix for metadata message encoding (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
DefiCake authored Apr 16, 2024
1 parent 5c9a8e1 commit 13ada4f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/gentle-teachers-punch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@fuel-bridge/solidity-contracts': patch
---

Fix encoding issue on FuelERC20GatewayV4.sendMetadata()
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ contract FuelERC20GatewayV4 is
function sendMetadata(address tokenAddress) external payable virtual whenNotPaused {
bytes memory metadataMessage = abi.encodePacked(
assetIssuerId,
MessageType.METADATA,
uint256(MessageType.METADATA),
abi.encode(
tokenAddress,
uint256(0), // token_id = 0 for all erc20 deposits
Expand Down

0 comments on commit 13ada4f

Please sign in to comment.