Skip to content

Commit 62f9e74

Browse files
committed
fix: add forked ether-decode-error lib
1 parent 3fef0f5 commit 62f9e74

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"countries-and-timezones": "^3.6.0",
5151
"dotenv": "^16.4.4",
5252
"ethers": "^5.7.2",
53-
"ethers-decode-error": "^1.0.0",
53+
"@ariesgun/ethers-decode-error": "^1.1.0",
5454
"npm-run-all": "^4.1.5",
5555
"zod": "^3.23.8"
5656
},

static/scripts/rewards/web3/erc20-permit.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { buttonController, getMakeClaimButton, viewClaimButton } from "../button
99
import { toaster, errorToast, MetaMaskError } from "../toaster";
1010
import { connectWallet } from "./connect-wallet";
1111
import { convertToNetworkId } from "./use-rpc-handler";
12-
import { decodeError } from "ethers-decode-error";
12+
import { decodeError } from "@ariesgun/ethers-decode-error";
1313
// import { decodeError } from "./error-decoder";
1414

1515
export async function fetchTreasury(permit: Permit): Promise<{ balance: BigNumber; allowance: BigNumber; decimals: number; symbol: string }> {

static/scripts/rewards/web3/erc721-permit.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { app } from "../app-state";
66
import { errorToast, MetaMaskError, toaster } from "../toaster";
77
import { buttonController, getMakeClaimButton } from "../button-controller";
88
import { connectWallet } from "./connect-wallet";
9-
import { decodeError } from "ethers-decode-error";
9+
import { decodeError } from "@ariesgun/ethers-decode-error";
1010

1111
export function claimErc721PermitHandler(reward: ERC721Permit) {
1212
return async function claimHandler() {

0 commit comments

Comments
 (0)