Skip to content

Commit b60f110

Browse files
zeppelin ext test workaround
1 parent dbeb876 commit b60f110

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
@@ -108,6 +108,25 @@ function zeppelin_test
108108
# Fails under evmVersion=osaka, likely due to transaction gas limits introduced by EIP-7825 or by the modexp upper bound EIP-7823.
109109
sed -i "s|describe(\('RSA'\)|describe.skip(\1|g" test/utils/cryptography/RSA.test.js
110110

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

0 commit comments

Comments
 (0)