Skip to content

Commit

Permalink
update sdk to fix how axios adapters options is applied
Browse files Browse the repository at this point in the history
  • Loading branch information
shrpne committed Apr 15, 2022
1 parent d2953de commit 039045e
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 15 deletions.
2 changes: 1 addition & 1 deletion api/gate.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export function estimateCoinBuy(params, axiosOptions) {

//@TODO use same `getCommissionPrice` in `estimateTxCommission` (update sdk)
const estimateCommissionCache = new Cache({maxAge: 30 * 1000});
export const estimateTxCommission = (params, options, axiosOptions) => EstimateTxCommission(minterApi)(params, {loose: true, ...options}, {...axiosOptions, cache: estimateCommissionCache});
export const estimateTxCommission = (params, options, axiosOptions) => EstimateTxCommission(minterApi)(params, {loose: true, ...options}, {...axiosOptions, cache: estimateCommissionCache}, {cache: estimateCommissionCache});

const coinCache = new Cache({maxAge: 1 * 60 * 1000});
export const replaceCoinSymbol = ReplaceCoinSymbol(minterApi);
Expand Down
9 changes: 6 additions & 3 deletions assets/debounce-promise.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ function defer() {
return deferred;
}

function CancelError(message = 'Canceled') {
Error.call(this, message);
this.isCanceled = true;
class CancelError extends Error {
constructor(message = 'Canceled') {
super(message);
this.name = 'CancelError';
this.isCanceled = true;
}
}
17 changes: 8 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "minter-console-web",
"version": "0.12.1",
"version": "0.12.2",
"description": "Minter Console Website",
"author": "shrpne <[email protected]>",
"private": true,
Expand Down Expand Up @@ -62,7 +62,7 @@
"lodash-es": "^4.17.21",
"minter-coin-block-list": "0.0.10",
"minter-footer-links": "^3.1.0",
"minter-js-sdk": "^0.42.1",
"minter-js-sdk": "^0.43.0",
"minterjs-tx": "^12.0.0",
"minterjs-util": "^0.23.0",
"minterjs-wallet": "^6.1.1",
Expand Down

0 comments on commit 039045e

Please sign in to comment.