File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff 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 " ) "
You can’t perform that action at this time.
0 commit comments