1- import * as rpcClient from "../src/rpc"
1+ import rpcClient from "../src/rpc"
22
33const NETWORK = "testnet"
44const getClient = ( type ) => {
@@ -22,14 +22,14 @@ describe("rpc", () => {
2222 const client = getClient ( "https" )
2323 const res = await client . status ( )
2424 expect ( res ) . toBeTruthy ( )
25- expect ( res . node_info . network ) . toBe ( "Binance-Chain-Nile " )
25+ expect ( res . node_info . network ) . toBe ( "Binance-Chain-Ganges " )
2626 } )
2727
2828 it ( "wss status" , async ( ) => {
2929 const client = getClient ( "wss" )
3030 const res = await client . status ( )
3131 expect ( res ) . toBeTruthy ( )
32- expect ( res . node_info . network ) . toBe ( "Binance-Chain-Nile " )
32+ expect ( res . node_info . network ) . toBe ( "Binance-Chain-Ganges " )
3333 client . close ( )
3434 } )
3535
@@ -210,8 +210,9 @@ describe("rpc", () => {
210210 it ( "getTxByHash" , async ( ) => {
211211 const client = getClient ( "https" )
212212 const hashStr =
213- "2029ED36444DFE12E6A235CFE8B1C81B7F31014D23790E382056B395EC1171FE "
213+ "5E0C54841CF0261EE111EB6B024762DB200F3FA59397967AB4BC641154C0B789 "
214214 const result = await client . getTxByHash ( hashStr , true )
215+ // console.log(JSON.stringify(result))
215216 expect ( result ) . toBeTruthy ( )
216217 expect ( result . height ) . toBeTruthy ( )
217218 expect ( result . hash ) . toBe ( hashStr )
0 commit comments