Skip to content

Commit 4ecfc7f

Browse files
committed
Feat : Changes for USDC Integration
1 parent 3ef1eea commit 4ecfc7f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

msg/message.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ func NewFungibleTransfer(
5858
destStableAmount *big.Int,
5959
isDestNative *big.Int,
6060
widgetId WidgetId,
61+
hash []byte,
6162
) Message {
6263
return Message{
6364
Source: source,
@@ -77,6 +78,7 @@ func NewFungibleTransfer(
7778
destStableToken,
7879
destToken,
7980
isDestNative.Bytes(),
81+
hash,
8082
},
8183
}
8284
}
@@ -113,7 +115,7 @@ func NewGenericTransfer(source, dest ChainId, nonce Nonce, resourceId ResourceId
113115
}
114116
}
115117

116-
func NewSequencerTransfer(source, dest ChainId, nonce Nonce, resourceId ResourceId, widgetId WidgetId, gasLimit *big.Int, gasPrice *big.Int, metadata []byte) Message {
118+
func NewSequencerTransfer(source, dest ChainId, nonce Nonce, resourceId ResourceId, widgetId WidgetId, gasLimit *big.Int, gasPrice *big.Int, metadata []byte, hash []byte) Message {
117119
return Message{
118120
Source: source,
119121
Destination: dest,
@@ -125,6 +127,7 @@ func NewSequencerTransfer(source, dest ChainId, nonce Nonce, resourceId Resource
125127
metadata,
126128
gasLimit,
127129
gasPrice,
130+
hash,
128131
},
129132
}
130133
}

0 commit comments

Comments
 (0)