diff --git a/solidity/build-tron.sh b/solidity/build-tron.sh index 4470bc8ffc2..2be58d937ca 100755 --- a/solidity/build-tron.sh +++ b/solidity/build-tron.sh @@ -2,6 +2,10 @@ set -e cd "$(dirname "$0")" +# Ensure deterministic outputs for turbo cache: hardhat/typechain can emit +# partial trees when incremental cache is reused against cleaned output dirs. +rm -rf ./cache-tron ../typescript/tron-sdk/src/abi ../typescript/tron-sdk/src/typechain + # Ensure soldeer dependencies are installed before patching files. # The regular @hyperlane-xyz/core build also runs soldeer install, and if it # runs concurrently with our file patches below, soldeer's git checkout fails