Skip to content

Commit

Permalink
use utility.batch
Browse files Browse the repository at this point in the history
  • Loading branch information
ParthDesai committed Jan 31, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent d9bc5cb commit c67d0aa
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -158,13 +158,6 @@ describeSuite({
).stdout
);

// We need to read initial checkpoint data and address of gateway contract to setup the ethereum client
// Once that is done, we can start the relayer
await signAndSendAndInclude(
relayApi.tx.sudo.sudo(relayApi.tx.ethereumBeaconClient.forceCheckpoint(initialBeaconUpdate)),
alice
);

const tokenLocation: MultiLocation = {
parents: 0,
interior: "Here",
@@ -179,9 +172,16 @@ describeSuite({
decimals: 18,
};

// Register reward token
// We need to read initial checkpoint data and address of gateway contract to setup the ethereum client
// We also need to register token
// Once that is done, we can start the relayer
await signAndSendAndInclude(
relayApi.tx.sudo.sudo(relayApi.tx.ethereumSystem.registerToken(versionedLocation, metadata)),
relayApi.tx.sudo.sudo(
relayApi.tx.utility.batch([
relayApi.tx.ethereumBeaconClient.forceCheckpoint(initialBeaconUpdate),
relayApi.tx.ethereumSystem.registerToken(versionedLocation, metadata),
])
),
alice
);

0 comments on commit c67d0aa

Please sign in to comment.