Skip to content

Commit b7cd1ab

Browse files
dndllcarrion256
authored andcommitted
fix: init script does not respect duplicate chain ids
1 parent a3e0bb8 commit b7cd1ab

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

nearx/contract/script/RequestSync.s.sol

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {ERC1967Proxy} from "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.s
66
import {DevOpsTools} from "lib/foundry-devops/src/DevOpsTools.sol";
77
import {NearX, decodePackedIds, TransactionOrReceiptId} from "../src/NearX.sol";
88

9-
// TODO: refactor for 128, taking the input fixture
109
contract RequestSync is Script {
1110
function run() external {
1211
address mostRecentlyDeployedProxy = DevOpsTools

nearx/contract/script/RequestVerify.s.sol

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {ERC1967Proxy} from "@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.s
66
import {DevOpsTools} from "lib/foundry-devops/src/DevOpsTools.sol";
77
import {NearX, decodePackedIds, TransactionOrReceiptId} from "../src/NearX.sol";
88

9-
// TODO: refactor for 128, taking the input fixture
109
contract RequestVerify is Script {
1110
function run() external {
1211
address mostRecentlyDeployedProxy = DevOpsTools

scripts/forge-script.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ then
66
fi
77

88
export VERSION="${VERSION:-v0.0.3}"
9-
export ETH_RPC="${ETH_RPC:-https://rpc.goerli.eth.gateway.fm}"
9+
export ETH_RPC="${ETH_RPC:-https://rpc.sepolia.eth.gateway.fm}"
1010
export NEAR_CHECKPOINT_HEADER_HASH="${NEAR_CHECKPOINT_HEADER_HASH:=0x63b87190ffbaa36d7dab50f918fe36f70ab26910a0e9d797161e2356561598e3}"
11-
export CHAIN_ID=${CHAIN_ID:=5}
11+
export CHAIN_ID=${CHAIN_ID:=11155111}
1212

1313
if [ -z "$ETH_PRIVATE_KEY" ]; then
1414
echo "You need to set ETH_PRIVATE_KEY"
@@ -42,7 +42,8 @@ function pullDeployment() {
4242
echo "Getting deployments"
4343
(cd "api/NEAR Light Client" && npx -y @usebruno/cli run "Succinct/Get Deployments.bru" --env testnet -o /tmp/result.json)
4444
RESULT=$(cat /tmp/result.json | jq '.results[0].response.data')
45-
echo $RESULT | jq .
45+
RESULT=$(echo $RESULT | jq -r "[.[] | select(.chain_id == $CHAIN_ID)]")
46+
echo $RESULT
4647
}
4748

4849
function extractInfo() {

0 commit comments

Comments
 (0)