@@ -30,7 +30,7 @@ describe("Token transfers", () => {
3030
3131 const mnemonic = generateMnemonic ( ) ;
3232 // Initialize auth
33- const auth = Secp256k1Auth . fromMnemonic ( mnemonic ) ;
33+ const auth = Secp256k1Auth . fromMnemonic ( mnemonic ) . derive ( "injective" ) ;
3434 directSigner = new DirectSigner ( auth , [ ] , getRpcEndpoint ( ) , {
3535 prefix : chainInfo . chain . bech32_prefix ,
3636 } ) ;
@@ -45,7 +45,7 @@ describe("Token transfers", () => {
4545 it ( "send injective token to address" , async ( ) => {
4646 const mnemonic = generateMnemonic ( ) ;
4747 // Initialize wallet
48- const auth2 = Secp256k1Auth . fromMnemonic ( mnemonic ) ;
48+ const auth2 = Secp256k1Auth . fromMnemonic ( mnemonic ) . derive ( "injective" ) ;
4949 const address2 = defaultSignerOptions . publicKey
5050 . hash ( auth2 . getPublicKey ( defaultSignerOptions . publicKey . isCompressed ) )
5151 . toBech32 ( chainInfo . chain . bech32_prefix ) ;
@@ -65,7 +65,7 @@ describe("Token transfers", () => {
6565 denom,
6666 } ;
6767
68- // Transfer uosmo tokens from faceut
68+ // Transfer inj tokens from faceut
6969 directSigner . addEncoders ( toEncoders ( MsgSend ) ) ;
7070 await directSigner . signAndBroadcast (
7171 [
@@ -85,13 +85,13 @@ describe("Token transfers", () => {
8585 expect ( balance ! . denom ) . toEqual ( denom ) ;
8686 } , 10000 ) ;
8787
88- it ( "send ibc osmo tokens to address on cosmos chain" , async ( ) => {
88+ it ( "send ibc inj tokens to address on cosmos chain" , async ( ) => {
8989 const {
9090 chainInfo : cosmosChainInfo ,
9191 getRpcEndpoint : cosmosRpcEndpoint ,
9292 } = useChain ( "cosmos" ) ;
9393
94- const { getRpcEndpoint : osmosisRpcEndpoint } = useChain ( "injective" ) ;
94+ // const { getRpcEndpoint: injRpcEndpoint } = useChain("injective");
9595
9696 // Initialize wallet address for cosmos chain
9797 const cosmosAuth = Secp256k1Auth . fromMnemonic ( generateMnemonic ( ) ) ;
@@ -163,7 +163,7 @@ describe("Token transfers", () => {
163163
164164 await new Promise ( ( resolve ) => setTimeout ( resolve , 6000 ) ) ;
165165
166- // Check osmos in address on cosmos chain
166+ // Check injs in address on cosmos chain
167167 const cosmosQueryClient = new RpcQuery ( cosmosRpcEndpoint ( ) ) ;
168168 const { balances } = await cosmosQueryClient . allBalances ( {
169169 address : cosmosAddress ,
0 commit comments