Skip to content

Commit

Permalink
fix some more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Foivos committed Oct 16, 2024
1 parent 8a8312d commit cb9b584
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion move/its/sources/discovery.move
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ fun initial_tx(its: &ITS): Transaction {
let function = transaction::new_function(
package_id<ITS>(),
ascii::string(b"discovery"),
ascii::string(b"get_call_info"),
ascii::string(b"call_info"),
);

let move_call = transaction::new_move_call(
Expand Down
10 changes: 2 additions & 8 deletions test/its.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ const {
findObjectId,
getRandomBytes32,
calculateNextSigners,
approveMessage,
getSingletonChannelId,
getITSChannelId,
setupTrustedAddresses,
Expand Down Expand Up @@ -87,16 +86,12 @@ describe('ITS', () => {
gatewayInfo.discovery = objectIds.relayerDiscovery;
}


async function registerItsTransaction() {
const registerTransactionBuilder = new TxBuilder(client);

await registerTransactionBuilder.moveCall({
target: `${deployments.its.packageId}::discovery::register_transaction`,
arguments: [
objectIds.its,
objectIds.relayerDiscovery,
],
arguments: [objectIds.its, objectIds.relayerDiscovery],
});

await registerTransactionBuilder.signAndExecute(deployer);
Expand Down Expand Up @@ -249,7 +244,7 @@ describe('ITS', () => {
message_id: hexlify(randomBytes(32)),
source_address: trustedSourceAddress,
destination_id: destinationAddress,
payload: payload,
payload,
payload_hash: keccak256(payload),
};

Expand Down Expand Up @@ -339,7 +334,6 @@ describe('ITS', () => {
};

await approveAndExecuteMessage(client, keypair, gatewayInfo, message);

});
});
});
Expand Down

0 comments on commit cb9b584

Please sign in to comment.