Skip to content

Commit b3f6f23

Browse files
zeppelin ext test workaround
1 parent 9aaab1b commit b3f6f23

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

test/externalTests/zeppelin.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,25 @@ function zeppelin_test
105105
# Fails with ProviderError: Invalid transaction: GasFloorMoreThanGasLimit
106106
sed -i "177s|+ 2_000n|+ 10_000n|" test/metatx/ERC2771Forwarder.test.js
107107

108+
cat <<-EOF >> "$config_file"
109+
const { TASK_COMPILE_SOLIDITY_COMPILE } = require("hardhat/builtin-tasks/task-names");
110+
111+
task(TASK_COMPILE_SOLIDITY_COMPILE)
112+
.setAction(async (args, hre, runSuper) => {
113+
const result = await runSuper(args);
114+
115+
result.output.errors = (result.output.errors || []).filter(err => {
116+
if (err.severity === "warning" && err.message.includes("will be deprecated")) {
117+
return false; // suppress this warning
118+
}
119+
return true;
120+
});
121+
122+
return result;
123+
});
124+
125+
EOF
126+
108127
neutralize_package_json_hooks
109128
force_hardhat_compiler_binary "$config_file" "$BINARY_TYPE" "$BINARY_PATH"
110129
force_hardhat_compiler_settings "$config_file" "$(first_word "$SELECTED_PRESETS")"

0 commit comments

Comments
 (0)