File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import {
2020 Node ,
2121 TreasuryId ,
2222 client ,
23- getTxnState ,
23+ qry ,
2424} from "chain" ;
2525import { IPFSNode } from "./ipfs" ;
2626import { TxHandler } from "./tx" ;
@@ -614,7 +614,7 @@ const executeCommand = async (
614614 . command ( "getTxnState <hash>" )
615615 . description ( "get the state of a transaction" )
616616 . action ( async ( hash : string ) => {
617- const data = await getTxnState ( hash ) ;
617+ const data = await qry . sequencer . getTxnState ( hash ) ;
618618 callback ( { id, status : SUCCESS , data } ) ;
619619 } ) ;
620620
Original file line number Diff line number Diff line change 11import { PrivateKey , PublicKey } from "o1js" ;
22import { CommandResponse , FAILURE , PENDING } from "./types" ;
3- import { getTxnStatus } from "chain" ;
3+ import { qry } from "chain" ;
44
55interface TxTask {
66 txfn : ( ) => Promise < void > ;
@@ -65,10 +65,10 @@ export class TxHandler {
6565 // but enables submission of many txns without waiting for their confirmation.
6666 if ( this . opts . nonce ) this . nonce = Number ( tx . transaction . nonce ) + 1 ;
6767
68- const { status, statusMessage } = await getTxnStatus (
69- tx . transaction ,
68+ const { status, statusMessage } = await qry . indexer . getTxStatus (
69+ tx . transaction . hash ( ) . toString ( ) ,
7070 ( ) => {
71- console . log ( "⏳ waiting for tx to be confirmed ..." ) ;
71+ console . log ( "⏳ Waiting for tx status ..." ) ;
7272 } ,
7373 parseInt ( this . opts . txStatusInterval ) ,
7474 parseInt ( this . opts . txStatusRetries ) ,
You can’t perform that action at this time.
0 commit comments