@@ -30,7 +30,7 @@ describe("Token transfers", () => {
30
30
31
31
const mnemonic = generateMnemonic ( ) ;
32
32
// Initialize auth
33
- const auth = Secp256k1Auth . fromMnemonic ( mnemonic ) ;
33
+ const auth = Secp256k1Auth . fromMnemonic ( mnemonic ) . derive ( "injective" ) ;
34
34
directSigner = new DirectSigner ( auth , [ ] , getRpcEndpoint ( ) , {
35
35
prefix : chainInfo . chain . bech32_prefix ,
36
36
} ) ;
@@ -45,7 +45,7 @@ describe("Token transfers", () => {
45
45
it ( "send injective token to address" , async ( ) => {
46
46
const mnemonic = generateMnemonic ( ) ;
47
47
// Initialize wallet
48
- const auth2 = Secp256k1Auth . fromMnemonic ( mnemonic ) ;
48
+ const auth2 = Secp256k1Auth . fromMnemonic ( mnemonic ) . derive ( "injective" ) ;
49
49
const address2 = defaultSignerOptions . publicKey
50
50
. hash ( auth2 . getPublicKey ( defaultSignerOptions . publicKey . isCompressed ) )
51
51
. toBech32 ( chainInfo . chain . bech32_prefix ) ;
@@ -65,7 +65,7 @@ describe("Token transfers", () => {
65
65
denom,
66
66
} ;
67
67
68
- // Transfer uosmo tokens from faceut
68
+ // Transfer inj tokens from faceut
69
69
directSigner . addEncoders ( toEncoders ( MsgSend ) ) ;
70
70
await directSigner . signAndBroadcast (
71
71
[
@@ -85,13 +85,13 @@ describe("Token transfers", () => {
85
85
expect ( balance ! . denom ) . toEqual ( denom ) ;
86
86
} , 10000 ) ;
87
87
88
- it ( "send ibc osmo tokens to address on cosmos chain" , async ( ) => {
88
+ it ( "send ibc inj tokens to address on cosmos chain" , async ( ) => {
89
89
const {
90
90
chainInfo : cosmosChainInfo ,
91
91
getRpcEndpoint : cosmosRpcEndpoint ,
92
92
} = useChain ( "cosmos" ) ;
93
93
94
- const { getRpcEndpoint : osmosisRpcEndpoint } = useChain ( "injective" ) ;
94
+ // const { getRpcEndpoint: injRpcEndpoint } = useChain("injective");
95
95
96
96
// Initialize wallet address for cosmos chain
97
97
const cosmosAuth = Secp256k1Auth . fromMnemonic ( generateMnemonic ( ) ) ;
@@ -163,7 +163,7 @@ describe("Token transfers", () => {
163
163
164
164
await new Promise ( ( resolve ) => setTimeout ( resolve , 6000 ) ) ;
165
165
166
- // Check osmos in address on cosmos chain
166
+ // Check injs in address on cosmos chain
167
167
const cosmosQueryClient = new RpcQuery ( cosmosRpcEndpoint ( ) ) ;
168
168
const { balances } = await cosmosQueryClient . allBalances ( {
169
169
address : cosmosAddress ,
0 commit comments