Skip to content

Commit b22030a

Browse files
committed
Merge branch 'main' of https://github.com/1inch/swap-vm
2 parents 8962be5 + 82c7ed8 commit b22030a

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,3 @@ build
1414
venv/
1515
broadcast
1616
.yarn
17-
.yarnrc.yml

.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ REGOP_ENV_PK:=$(PREFIX)_PRIVATE_KEY
2323
RPC_URL=$(shell echo "$${!REGOP_ENV_RPC_URL}" | tr -d '"')
2424
PRIVATE_KEY=$(shell echo "$${!REGOP_ENV_PK}" | tr -d '"')
2525

26-
COMPILER_VERSION:=$(shell cat foundry.toml | grep 'solc_version =' | head -1 | awk -F'"' '{print $$2}')
26+
COMPILER_VERSION:=$(shell grep 'solc_version' foundry.toml | head -1 | sed 's/.*"\(.*\)".*/\1/')
2727

2828
deploy-swap-vm:
2929
@$(MAKE) FILE_DEPLOY_NAME=SwapVMRouter validate-swap-vm-router deploy-swap-vm-router-impl save-deployments
@@ -60,6 +60,7 @@ verify-swap-vm-router-impl:
6060
echo "Deployment file $$DEPLOYMENT_FILE does not exist! Deploy first."; \
6161
exit 1; \
6262
fi; \
63+
echo "Compiler version: $${COMPILER_VERSION}"; \
6364
CONTRACT_ADDRESS=$$($(MAKE) contract-address DEPLOYMENT_FILE=$$DEPLOYMENT_FILE); \
6465
echo "Verifying $${FILE_DEPLOY_NAME} at $$CONTRACT_ADDRESS on $(OPS_NETWORK)..."; \
6566
echo "Constructor args: aqua=$(OPS_AQUA_ADDRESS), name=$(OPS_SWAP_VM_ROUTER_NAME), version=$(OPS_SWAP_VM_ROUTER_VERSION)"; \

0 commit comments

Comments
 (0)