@@ -1491,7 +1491,7 @@ func TestKeystoresBalance(t *testing.T) {
14911491 b := newBackend (t , testnetDisabled , regtestDisabled )
14921492 defer b .Close ()
14931493
1494- b .makeBtcAccount = func (config * accounts.AccountConfig , coin * btc.Coin , gapLimits * types.GapLimits , getAddress func (* btc. Account , blockchain.ScriptHashHex ) (* addresses.AccountAddress , error ), log * logrus.Entry ) accounts.Interface {
1494+ b .makeBtcAccount = func (config * accounts.AccountConfig , coin * btc.Coin , gapLimits * types.GapLimits , getAddress func (coinpkg. Code , blockchain.ScriptHashHex ) (* addresses.AccountAddress , error ), log * logrus.Entry ) accounts.Interface {
14951495 accountMock := MockBtcAccount (t , config , coin , gapLimits , log )
14961496 accountMock .BalanceFunc = func () (* accounts.Balance , error ) {
14971497 return accounts .NewBalance (coinpkg .NewAmountFromInt64 (1e8 ), coinpkg .NewAmountFromInt64 (0 )), nil
@@ -1561,7 +1561,7 @@ func TestCoinsTotalBalance(t *testing.T) {
15611561 b := newBackend (t , testnetDisabled , regtestDisabled )
15621562 defer b .Close ()
15631563
1564- b .makeBtcAccount = func (config * accounts.AccountConfig , coin * btc.Coin , gapLimits * types.GapLimits , getAddress func (* btc. Account , blockchain.ScriptHashHex ) (* addresses.AccountAddress , error ), log * logrus.Entry ) accounts.Interface {
1564+ b .makeBtcAccount = func (config * accounts.AccountConfig , coin * btc.Coin , gapLimits * types.GapLimits , getAddress func (coinpkg. Code , blockchain.ScriptHashHex ) (* addresses.AccountAddress , error ), log * logrus.Entry ) accounts.Interface {
15651565 accountMock := MockBtcAccount (t , config , coin , gapLimits , log )
15661566 accountMock .BalanceFunc = func () (* accounts.Balance , error ) {
15671567 return accounts .NewBalance (coinpkg .NewAmountFromInt64 (1e8 ), coinpkg .NewAmountFromInt64 (0 )), nil
@@ -1622,7 +1622,7 @@ func TestAccountsFiatAndCoinBalance(t *testing.T) {
16221622 b := newBackend (t , testnetDisabled , regtestDisabled )
16231623 defer b .Close ()
16241624
1625- b .makeBtcAccount = func (config * accounts.AccountConfig , coin * btc.Coin , gapLimits * types.GapLimits , getAddress func (* btc. Account , blockchain.ScriptHashHex ) (* addresses.AccountAddress , error ), log * logrus.Entry ) accounts.Interface {
1625+ b .makeBtcAccount = func (config * accounts.AccountConfig , coin * btc.Coin , gapLimits * types.GapLimits , getAddress func (coinpkg. Code , blockchain.ScriptHashHex ) (* addresses.AccountAddress , error ), log * logrus.Entry ) accounts.Interface {
16261626 accountMock := MockBtcAccount (t , config , coin , gapLimits , log )
16271627 accountMock .BalanceFunc = func () (* accounts.Balance , error ) {
16281628 return accounts .NewBalance (coinpkg .NewAmountFromInt64 (1e8 ), coinpkg .NewAmountFromInt64 (0 )), nil
0 commit comments