diff --git a/modules/sdk-coin-dot/test/unit/dot.ts b/modules/sdk-coin-dot/test/unit/dot.ts index f0c5600297..a41abbc00a 100644 --- a/modules/sdk-coin-dot/test/unit/dot.ts +++ b/modules/sdk-coin-dot/test/unit/dot.ts @@ -263,7 +263,8 @@ describe('DOT:', function () { const accountInfoCB = sandBox.stub(Dot.prototype, 'getAccountInfo' as keyof Dot); accountInfoCB.withArgs(testData.wrwUser.walletAddress0).resolves({ nonce: nonce, - freeBalance: 8888, + // Must exceed stubbed getFee so recover() does not throw (matches getFee withArgs amount). + freeBalance: 1510000000000, }); const headerInfoCB = sandBox.stub(Dot.prototype, 'getHeaderInfo' as keyof Dot); headerInfoCB.resolves({ @@ -275,7 +276,11 @@ describe('DOT:', function () { freeBalance: 1510000000000, }); const getFeeCB = sandBox.stub(Dot.prototype, 'getFee' as keyof Dot); + // Default avoids RPC when tests use a recoveryDestination other than destAddr (e.g. unsigned sweep fixture). + getFeeCB.resolves(15783812856); getFeeCB.withArgs(destAddr, testData.wrwUser.walletAddress0, 1510000000000).resolves(15783812856); + const getMaterialCB = sandBox.stub(Dot.prototype, 'getMaterial' as keyof Dot); + getMaterialCB.resolves(utils.getMaterial(coins.get('tdot'))); }); afterEach(function () { @@ -461,6 +466,8 @@ describe('DOT:', function () { getFeeCB.withArgs(baseAddr, testData.consolidationWrwUser.walletAddress1, 10000000000).resolves(15783812856); getFeeCB.withArgs(baseAddr, testData.consolidationWrwUser.walletAddress2, 1510000000000).resolves(15783812856); getFeeCB.withArgs(baseAddr, testData.consolidationWrwUser.walletAddress3, 1510000000000).resolves(15783812856); + const getMaterialCB = sandBox.stub(Dot.prototype, 'getMaterial' as keyof Dot); + getMaterialCB.resolves(utils.getMaterial(coins.get('tdot'))); }); afterEach(function () { @@ -699,6 +706,8 @@ describe('DOT:', function () { nonce: nonce, freeBalance: 0, }); + const getFeeCB = sandBox.stub(Dot.prototype, 'getFee' as keyof Dot); + getFeeCB.resolves(15783812856); }); afterEach(function () { diff --git a/modules/sdk-coin-kaspa/package.json b/modules/sdk-coin-kaspa/package.json index f336c4c723..f5395f5486 100644 --- a/modules/sdk-coin-kaspa/package.json +++ b/modules/sdk-coin-kaspa/package.json @@ -40,9 +40,9 @@ ] }, "dependencies": { - "@bitgo/sdk-core": "^36.40.0", + "@bitgo/sdk-core": "^36.41.0", "@bitgo/secp256k1": "^1.11.0", - "@bitgo/statics": "^58.35.0", + "@bitgo/statics": "^58.36.0", "bignumber.js": "9.0.0", "blakejs": "^1.2.1" }, diff --git a/modules/statics/src/allCoinsAndTokens.ts b/modules/statics/src/allCoinsAndTokens.ts index f90933e10f..3df7dc2f59 100644 --- a/modules/statics/src/allCoinsAndTokens.ts +++ b/modules/statics/src/allCoinsAndTokens.ts @@ -3365,7 +3365,7 @@ export const allCoinsAndTokens = [ 'Canton Coin', Networks.main.canton, UnderlyingAsset.CANTON, - CANTON_FEATURES, + [...CANTON_FEATURES, CoinFeature.UNSPENT_MODEL], KeyCurve.Ed25519 ), canton(