Skip to content

Commit

Permalink
addressing feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Viterbo committed Oct 25, 2023
1 parent 8f0ce47 commit ae45281
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/antelope/mocks/AccountStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class AccountStore {

return tx;
} catch (error) {
const trxError = ant.config.wrapError(actionError, error);
const trxError = ant.config.transactionError(actionError, error);
ant.config.transactionErrorHandler(trxError, funcname);
throw trxError;
} finally {
Expand Down
12 changes: 1 addition & 11 deletions src/antelope/mocks/AntelopeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class AntelopeWallets {

export class AntelopeConfig {
// @TODO rename this method, it's used for token and NFT transfers as well
wrapError(description: string, error: unknown): AntelopeError {
transactionError(description: string, error: unknown): AntelopeError {
if (error instanceof AntelopeError) {
return error as AntelopeError;
}
Expand Down Expand Up @@ -265,16 +265,6 @@ export class AntelopeConfig {
}

const config = new AntelopeConfig();



// const config = {
// notifyNeutralMessageHandler: (message: string) => void 0,
// localizationHandler: (message: string, params?: Record<string, string>) => message,
// notifyFailureWithActionHandler: (message: string, action: () => void) => void 0,
// notifyFailureWithAction: (message: string, params?: { label: string; handler: () => void; }) => void 0,
// };

const wallets = new AntelopeWallets();
const Antelope = {
config,
Expand Down

0 comments on commit ae45281

Please sign in to comment.