Skip to content

Commit

Permalink
chore: fix gateway message type
Browse files Browse the repository at this point in the history
  • Loading branch information
npty committed Sep 2, 2024
1 parent 3dec35a commit e142522
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sui/gateway.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,14 +174,14 @@ async function approve(keypair, client, config, chain, contractConfig, args, opt
const [sourceChain, messageId, sourceAddress, destinationId, payloadHash] = args;

const encodedMessages = bcs
.vector(bcsStructs.gateway.ApprovedMessage)
.vector(bcsStructs.gateway.Message)
.serialize([
{
source_chain: sourceChain,
message_id: messageId,
source_address: sourceAddress,
destination_id: destinationId,
payload_hash: bcsStructs.common.Bytes32.serialize(arrayify(payloadHash)).toBytes(),
payload_hash: payloadHash,
},
])
.toBytes();
Expand Down

0 comments on commit e142522

Please sign in to comment.