diff --git a/move/its/sources/discovery.move b/move/its/sources/discovery.move index a690938a..3a8f9235 100644 --- a/move/its/sources/discovery.move +++ b/move/its/sources/discovery.move @@ -117,7 +117,7 @@ fun interchain_transfer_tx(its: &InterchainTokenService, reader: &mut AbiReader) transaction::new_move_call( transaction::new_function( package_id(), - ascii::string(b"its"), + ascii::string(b"interchain_token_service"), ascii::string(b"receive_interchain_transfer"), ), arguments, @@ -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(), - ascii::string(b"its"), + ascii::string(b"interchain_token_service"), ascii::string(b"receive_deploy_interchain_token"), ), arguments, @@ -268,7 +268,7 @@ fun test_discovery_interchain_transfer() { assert!( call_info.function().package_id_from_function() == package_id(), ); - 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"), ); @@ -375,7 +375,7 @@ fun test_discovery_deploy_token() { assert!( call_info.function().package_id_from_function() == package_id(), ); - 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"), ); @@ -485,7 +485,7 @@ fun test_discovery_hub_message() { assert!( call_info.function().package_id_from_function() == package_id(), ); - 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"), ); diff --git a/test/its.js b/test/its.js index ac1285f8..ecd80a57 100644 --- a/test/its.js +++ b/test/its.js @@ -31,7 +31,7 @@ const { } = require('../dist/cjs'); const { keccak256, defaultAbiCoder, toUtf8Bytes, hexlify, randomBytes } = require('ethers/lib/utils'); -describe('ITS', () => { +describe.only('ITS', () => { // Sui Client let client; const network = process.env.NETWORK || 'localnet'; @@ -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], }); @@ -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`], }); @@ -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, @@ -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,