From d00720be305d9b03a1272ee4227cabbc4fed694f Mon Sep 17 00:00:00 2001 From: Richard Meissner Date: Tue, 18 Jul 2023 15:13:14 +0200 Subject: [PATCH] Update addresses (#22) --- web/README.md | 2 ++ web/src/logic/sample.ts | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/README.md b/web/README.md index c55e289..eb03c22 100644 --- a/web/README.md +++ b/web/README.md @@ -14,6 +14,8 @@ This web app demonstrates how to interact with the Registry, the Manager and the - [Relay Plugin](../src/routes/samples/relay) - A plugin that allows to relay Safe transactions and pay a fee for it which is capped by the user. +Note: If more examples are added or the code is updated to a new plugin, make sure to replace all hardcoded addresses (i.e. in the `sample.ts` file) + ## Available Scripts In the project directory, you can run: diff --git a/web/src/logic/sample.ts b/web/src/logic/sample.ts index c8e043c..396a075 100644 --- a/web/src/logic/sample.ts +++ b/web/src/logic/sample.ts @@ -7,7 +7,7 @@ import { getCurrentNonce } from "./safe"; import { getSafeMultisigTxs, SafeMultisigTransaction } from "./services"; const SAMPLE_PLUGIN_CHAIN_ID = 5 -const SAMPLE_PLUGIN_ADDRESS = getAddress("0xA68799b8f1F2535ba88530FeD2300cFC69D4ABd1") +const SAMPLE_PLUGIN_ADDRESS = getAddress("0x60D996eF6F281eD4f562537fab84CFE192FF0206") export const NATIVE_TOKEN = getAddress("0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE"); const SAMPLE_PLUGIN_ABI = [ "function maxFeePerToken(address account, address token) public view returns (uint256 maxFee)", @@ -40,8 +40,6 @@ const getRelayPlugin = async() => { ) } -//0x6a7612020000000000000000000000007fae68e71edfd9af429f3c01e75bb905c79e10b70000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000000440d582f130000000000000000000000001083a997a822fed50aaaf785f95e2726440069e400000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000415c98c6a811a20f7b34a48b43cdad9d9901443de42e92f736abcc8a7f9e2ee7560550844cdf6e548a9a8b7ee7a0851d7cdc9356545ba345a3231ec5eb564cb7311b00000000000000000000000000000000000000000000000000000000000000 - const getToken = async(address: string) => { const provider = await getProvider() return new ethers.Contract(