Skip to content

Commit

Permalink
fix: add forked ether-decode-error lib
Browse files Browse the repository at this point in the history
  • Loading branch information
ariesgun committed Oct 26, 2024
1 parent 3fef0f5 commit 62f9e74
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"countries-and-timezones": "^3.6.0",
"dotenv": "^16.4.4",
"ethers": "^5.7.2",
"ethers-decode-error": "^1.0.0",
"@ariesgun/ethers-decode-error": "^1.1.0",
"npm-run-all": "^4.1.5",
"zod": "^3.23.8"
},
Expand Down
2 changes: 1 addition & 1 deletion static/scripts/rewards/web3/erc20-permit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { buttonController, getMakeClaimButton, viewClaimButton } from "../button
import { toaster, errorToast, MetaMaskError } from "../toaster";
import { connectWallet } from "./connect-wallet";
import { convertToNetworkId } from "./use-rpc-handler";
import { decodeError } from "ethers-decode-error";
import { decodeError } from "@ariesgun/ethers-decode-error";
// import { decodeError } from "./error-decoder";

export async function fetchTreasury(permit: Permit): Promise<{ balance: BigNumber; allowance: BigNumber; decimals: number; symbol: string }> {
Expand Down
2 changes: 1 addition & 1 deletion static/scripts/rewards/web3/erc721-permit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { app } from "../app-state";
import { errorToast, MetaMaskError, toaster } from "../toaster";
import { buttonController, getMakeClaimButton } from "../button-controller";
import { connectWallet } from "./connect-wallet";
import { decodeError } from "ethers-decode-error";
import { decodeError } from "@ariesgun/ethers-decode-error";

export function claimErc721PermitHandler(reward: ERC721Permit) {
return async function claimHandler() {
Expand Down

0 comments on commit 62f9e74

Please sign in to comment.