Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion modules/sdk-coin-dot/test/unit/dot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -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);
Comment thread
borkds marked this conversation as resolved.
const getMaterialCB = sandBox.stub(Dot.prototype, 'getMaterial' as keyof Dot);
getMaterialCB.resolves(utils.getMaterial(coins.get('tdot')));
});

afterEach(function () {
Expand Down Expand Up @@ -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 () {
Expand Down Expand Up @@ -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 () {
Expand Down
4 changes: 2 additions & 2 deletions modules/sdk-coin-kaspa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion modules/statics/src/allCoinsAndTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3365,7 +3365,7 @@ export const allCoinsAndTokens = [
'Canton Coin',
Networks.main.canton,
UnderlyingAsset.CANTON,
CANTON_FEATURES,
[...CANTON_FEATURES, CoinFeature.UNSPENT_MODEL],
KeyCurve.Ed25519
),
canton(
Expand Down
Loading