Skip to content

Commit

Permalink
Send to Random EOA address
Browse files Browse the repository at this point in the history
  • Loading branch information
asoliman92 committed Feb 27, 2025
1 parent fecbb31 commit a19e54e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion integration-tests/load/ccip/destination_gun.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,12 @@ func (m *DestinationGun) GetMessage(src uint64) (router.ClientEVM2AnyMessage, in

// When it's not a programmable token transfer the receiver can be an EOA, we use a random address to denote that
if selectedMsgDetails.IsTokenOnlyTransfer() {
message.Receiver = utils.RandomAddress().Bytes()
receiver, err := utils.ABIEncode(`[{"type":"address"}]`, common.HexToAddress(utils.RandomAddress().Hex()))
if err != nil {
m.l.Error("Error encoding receiver address")
return router.ClientEVM2AnyMessage{}, 0, err
}
message.Receiver = receiver
}

// Set token amounts if it's a token transfer
Expand Down

0 comments on commit a19e54e

Please sign in to comment.