From 02183658eb10b1d511d140422ff7156b1f238ed9 Mon Sep 17 00:00:00 2001 From: Lethale Date: Tue, 5 Nov 2024 11:08:44 +0100 Subject: [PATCH] fix instructions --- makefile | 12 +++++++++--- script/MintScript.s.sol | 2 ++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/makefile b/makefile index ffc707a..ba580fd 100644 --- a/makefile +++ b/makefile @@ -1,8 +1,14 @@ testnet--deploy-system: - @forge script script/System.s.sol:ContractScript \ + forge script script/System.s.sol:ContractScript \ --private-key ${WALLET_DEV_PRIVATE_KEY} \ - --rpc-url "${RPC_BASE_URL_BERA_TESTNET}${RPC_API_KEY}" \ + --rpc-url "https://bartio.rpc.berachain.com" \ + --broadcast -vvvvv + +testnet--mint-name: + forge script script/MintScript.s.sol:MintScript \ + --private-key ${WALLET_DEV_PRIVATE_KEY} \ + --rpc-url "https://bartio.rpc.berachain.com" \ --broadcast -vvvvv anvil--deploy-system: @@ -15,4 +21,4 @@ anvil--mint-name: forge script script/MintScript.s.sol:MintScript \ --private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 \ --rpc-url "http://127.0.0.1:8545" \ - --broadcast -vvvvv --force + --broadcast -vvvvv diff --git a/script/MintScript.s.sol b/script/MintScript.s.sol index 8c4e385..bdd71d0 100644 --- a/script/MintScript.s.sol +++ b/script/MintScript.s.sol @@ -20,6 +20,8 @@ contract MintScript is Script { /// 1. change NAME_TO_MINT to the name you want to mint /// 2. run script with the following command: /// forge script script/MintScript.s.sol:MintScript --rpc-url https://bartio.rpc.berachain.com/ --broadcast --private-key + /// or + /// WALLET_DEV_PRIVATE_KEY= make testnet--mint-name /// if you want to mint a name with less than 5 characters, update the value of .register function call