File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
packages/adena-module/src/wallet Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 1- import { JSONRPCProvider , Provider } from '@gnolang/tm2-js-client' ;
1+ import { ABCIAccount , JSONRPCProvider , Provider } from '@gnolang/tm2-js-client' ;
22import { AdenaWallet , Document , txToDocument } from './..' ;
33
44const mnemonic =
@@ -54,6 +54,16 @@ describe('Transaction Sign', () => {
5454 } ) ;
5555 mockProvider . getAccountNumber = jest . fn ( ) . mockResolvedValue ( '0' ) ;
5656 mockProvider . getAccountSequence = jest . fn ( ) . mockResolvedValue ( '1' ) ;
57+ const mockAccount : ABCIAccount = {
58+ BaseAccount : {
59+ address : '' ,
60+ coins : '' ,
61+ public_key : null ,
62+ account_number : '' ,
63+ sequence : ''
64+ }
65+ }
66+ mockProvider . getAccount = jest . fn ( ) . mockResolvedValue ( mockAccount ) ;
5767 } ) ;
5868
5969 it ( 'default success' , async ( ) => {
You can’t perform that action at this time.
0 commit comments