Skip to content

Commit

Permalink
hotfix: onetimepayments
Browse files Browse the repository at this point in the history
  • Loading branch information
sirpy committed Sep 18, 2023
1 parent 358b762 commit 24648ee
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/lib/wallet/GoodWalletClass.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,6 @@ export class GoodWallet {
// OneTimePaymentLinks Contract
this.oneTimePaymentsContract = addContract(OneTimePaymentsABI, 'OneTimePayments')

// OneTimePaymentsV2 Contract
this.oneTimePaymentsContract = addContract(OneTimePaymentsABI, 'OneTimePaymentsV2')

// UBI Contract
this.invitesContract = addContract(InvitesABI, 'Invites', '0x5a35C3BC159C4e4afAfadbdcDd8dCd2dd8EC8CBE')

Expand Down Expand Up @@ -1628,7 +1625,7 @@ export class GoodWallet {
gas = await tx.estimateGas().then(cost => (Number(cost) + 40000).toFixed(0))
} catch (e) {
if (e.message.toLowerCase().includes('revert')) {
log.error('sendTransaction gas estimate reverted:', e.message, e, {
log.warn('sendTransaction gas estimate reverted:', e.message, e, {
method: tx._method?.name,
tx: tx._method,
})
Expand Down Expand Up @@ -1716,7 +1713,7 @@ export class GoodWallet {
onConfirmation(confirmation)
})
.on('error', exception => {
log.error('sendTransaction error:', exception.message, exception, {
log.error('sendNativeTransaction error:', exception.message, exception, {
tx: txData,
category: ExceptionCategory.Blockhain,
})
Expand Down

0 comments on commit 24648ee

Please sign in to comment.