@@ -263,7 +263,8 @@ describe('DOT:', function () {
263263 const accountInfoCB = sandBox . stub ( Dot . prototype , 'getAccountInfo' as keyof Dot ) ;
264264 accountInfoCB . withArgs ( testData . wrwUser . walletAddress0 ) . resolves ( {
265265 nonce : nonce ,
266- freeBalance : 8888 ,
266+ // Must exceed stubbed getFee so recover() does not throw (matches getFee withArgs amount).
267+ freeBalance : 1510000000000 ,
267268 } ) ;
268269 const headerInfoCB = sandBox . stub ( Dot . prototype , 'getHeaderInfo' as keyof Dot ) ;
269270 headerInfoCB . resolves ( {
@@ -275,7 +276,11 @@ describe('DOT:', function () {
275276 freeBalance : 1510000000000 ,
276277 } ) ;
277278 const getFeeCB = sandBox . stub ( Dot . prototype , 'getFee' as keyof Dot ) ;
279+ // Default avoids RPC when tests use a recoveryDestination other than destAddr (e.g. unsigned sweep fixture).
280+ getFeeCB . resolves ( 15783812856 ) ;
278281 getFeeCB . withArgs ( destAddr , testData . wrwUser . walletAddress0 , 1510000000000 ) . resolves ( 15783812856 ) ;
282+ const getMaterialCB = sandBox . stub ( Dot . prototype , 'getMaterial' as keyof Dot ) ;
283+ getMaterialCB . resolves ( utils . getMaterial ( coins . get ( 'tdot' ) ) ) ;
279284 } ) ;
280285
281286 afterEach ( function ( ) {
@@ -461,6 +466,8 @@ describe('DOT:', function () {
461466 getFeeCB . withArgs ( baseAddr , testData . consolidationWrwUser . walletAddress1 , 10000000000 ) . resolves ( 15783812856 ) ;
462467 getFeeCB . withArgs ( baseAddr , testData . consolidationWrwUser . walletAddress2 , 1510000000000 ) . resolves ( 15783812856 ) ;
463468 getFeeCB . withArgs ( baseAddr , testData . consolidationWrwUser . walletAddress3 , 1510000000000 ) . resolves ( 15783812856 ) ;
469+ const getMaterialCB = sandBox . stub ( Dot . prototype , 'getMaterial' as keyof Dot ) ;
470+ getMaterialCB . resolves ( utils . getMaterial ( coins . get ( 'tdot' ) ) ) ;
464471 } ) ;
465472
466473 afterEach ( function ( ) {
@@ -699,6 +706,8 @@ describe('DOT:', function () {
699706 nonce : nonce ,
700707 freeBalance : 0 ,
701708 } ) ;
709+ const getFeeCB = sandBox . stub ( Dot . prototype , 'getFee' as keyof Dot ) ;
710+ getFeeCB . resolves ( 15783812856 ) ;
702711 } ) ;
703712
704713 afterEach ( function ( ) {
0 commit comments