Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Foivos committed Dec 11, 2024
1 parent 6b11969 commit b3b5866
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions move/its/sources/discovery.move
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ fun interchain_transfer_tx(its: &InterchainTokenService, reader: &mut AbiReader)
transaction::new_move_call(
transaction::new_function(
package_id<InterchainTokenService>(),
ascii::string(b"its"),
ascii::string(b"interchain_token_service"),
ascii::string(b"receive_interchain_transfer"),
),
arguments,
Expand Down Expand Up @@ -170,7 +170,7 @@ fun deploy_interchain_token_tx(its: &InterchainTokenService, reader: &mut AbiRea
let move_call = transaction::new_move_call(
transaction::new_function(
package_id<InterchainTokenService>(),
ascii::string(b"its"),
ascii::string(b"interchain_token_service"),
ascii::string(b"receive_deploy_interchain_token"),
),
arguments,
Expand Down Expand Up @@ -268,7 +268,7 @@ fun test_discovery_interchain_transfer() {
assert!(
call_info.function().package_id_from_function() == package_id<InterchainTokenService>(),
);
assert!(call_info.function().module_name() == ascii::string(b"its"));
assert!(call_info.function().module_name() == ascii::string(b"interchain_token_service"));
assert!(
call_info.function().name() == ascii::string(b"receive_interchain_transfer"),
);
Expand Down Expand Up @@ -375,7 +375,7 @@ fun test_discovery_deploy_token() {
assert!(
call_info.function().package_id_from_function() == package_id<InterchainTokenService>(),
);
assert!(call_info.function().module_name() == ascii::string(b"its"));
assert!(call_info.function().module_name() == ascii::string(b"interchain_token_service"));
assert!(
call_info.function().name() == ascii::string(b"receive_deploy_interchain_token"),
);
Expand Down Expand Up @@ -485,7 +485,7 @@ fun test_discovery_hub_message() {
assert!(
call_info.function().package_id_from_function() == package_id<InterchainTokenService>(),
);
assert!(call_info.function().module_name() == ascii::string(b"its"));
assert!(call_info.function().module_name() == ascii::string(b"interchain_token_service"));
assert!(
call_info.function().name() == ascii::string(b"receive_interchain_transfer"),
);
Expand Down
10 changes: 5 additions & 5 deletions test/its.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const {
} = require('../dist/cjs');
const { keccak256, defaultAbiCoder, toUtf8Bytes, hexlify, randomBytes } = require('ethers/lib/utils');

describe('ITS', () => {
describe.only('ITS', () => {

Check failure on line 34 in test/its.js

View workflow job for this annotation

GitHub Actions / lint

Unexpected exclusive mocha test
// Sui Client
let client;
const network = process.env.NETWORK || 'localnet';
Expand Down Expand Up @@ -151,7 +151,7 @@ describe('ITS', () => {
const txBuilder = new TxBuilder(client);

await txBuilder.moveCall({
target: `${deployments.example.packageId}::interchain_token_service::register_transaction`,
target: `${deployments.example.packageId}::its::register_transaction`,
arguments: [objectIds.relayerDiscovery, objectIds.singleton, objectIds.its, CLOCK_PACKAGE_ID],
});

Expand All @@ -164,7 +164,7 @@ describe('ITS', () => {
it('should register a coin successfully', async () => {
const txBuilder = new TxBuilder(client);
await txBuilder.moveCall({
target: `${deployments.example.packageId}::interchain_token_service::register_coin`,
target: `${deployments.example.packageId}::its::register_coin`,
arguments: [objectIds.its, objectIds.tokenCoinMetadata],
typeArguments: [`${deployments.example.packageId}::token::TOKEN`],
});
Expand Down Expand Up @@ -202,7 +202,7 @@ describe('ITS', () => {
});

await txBuilder.moveCall({
target: `${deployments.example.packageId}::interchain_token_service::send_interchain_transfer_call`,
target: `${deployments.example.packageId}::its::send_interchain_transfer_call`,
arguments: [
objectIds.singleton,
objectIds.its,
Expand Down Expand Up @@ -272,7 +272,7 @@ describe('ITS', () => {
});

await txBuilder.moveCall({
target: `${deployments.example.packageId}::interchain_token_service::deploy_remote_interchain_token`,
target: `${deployments.example.packageId}::its::deploy_remote_interchain_token`,
arguments: [
objectIds.its,
objectIds.gateway,
Expand Down

0 comments on commit b3b5866

Please sign in to comment.