Skip to content

Commit

Permalink
fix(Portal): update _prepareNativeTokenTransfer sig
Browse files Browse the repository at this point in the history
  • Loading branch information
PierrickGT committed Oct 18, 2024
1 parent 55a447f commit bb8adbc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
branch = main
[submodule "lib/wrapped-m-token"]
path = lib/wrapped-m-token
url = https://github.com/m0-foundation/wrapped-m-token
url = git@github.com:m0-foundation/wrapped-m-token.git
2 changes: 1 addition & 1 deletion lib/example-native-token-transfers
6 changes: 3 additions & 3 deletions src/Portal.sol
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,18 @@ abstract contract Portal is NttManagerNoRateLimiting, IPortal {
/// @dev Adds M Token Index to the NTT payload.
function _prepareNativeTokenTransfer(
TrimmedAmount amount_,
address token_,
bytes32 recipient_,
uint16 destinationChainId_,
uint64 sequence_,
address sender_
address sender_,
bytes32 refundAddress_
) internal override returns (TransceiverStructs.NativeTokenTransfer memory nativeTokenTransfer_) {
// Convert to uint64 for compatibility with Solana and other non-EVM chains.
uint64 index_ = _currentIndex().toUint64();

nativeTokenTransfer_ = TransceiverStructs.NativeTokenTransfer(
amount_,
token_.toBytes32(),
token.toBytes32(),
recipient_,
destinationChainId_,
abi.encodePacked(index_)
Expand Down

0 comments on commit bb8adbc

Please sign in to comment.