Commit a28bfa56 authored by Mark Tyneway's avatar Mark Tyneway Committed by GitHub

op-bindings: ensure integrity of artifacts (#3387)

Use `hardhat compile` so that it ensures that the artifacts
used by the generator are up to date
parent 6e5df3ef
......@@ -25,7 +25,7 @@ bindings: l1block-bindings \
compile:
cd ../packages/contracts-bedrock/ && \
forge build -o ./tmp-artifacts
npx hardhat compile
l1-cross-domain-messenger-bindings: compile
./gen_bindings.sh contracts/L1/L1CrossDomainMessenger.sol:L1CrossDomainMessenger $(pkg)
......
......@@ -37,9 +37,9 @@ TEMP=$(mktemp -d)
CWD=$(pwd)
# Build contracts
cd ${CONTRACTS_PATH}
forge inspect -o ./tmp-artifacts ${NAME} abi > ${TEMP}/${TYPE}.abi
forge inspect -o ./tmp-artifacts ${NAME} bytecode > ${TEMP}/${TYPE}.bin
forge inspect -o ./tmp-artifacts ${NAME} deployedBytecode > ${CWD}/bin/${TYPE_LOWER}_deployed.hex
forge inspect ${NAME} abi > ${TEMP}/${TYPE}.abi
forge inspect ${NAME} bytecode > ${TEMP}/${TYPE}.bin
forge inspect ${NAME} deployedBytecode > ${CWD}/bin/${TYPE_LOWER}_deployed.hex
# Run ABIGEN
cd ${CWD}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment