Skip to content

Commit

Permalink
Fix for ABIEncoderV2
Browse files Browse the repository at this point in the history
Fix for ABIEncoderV2
sc-forks#636
  • Loading branch information
ali2251 authored Jul 8, 2021
1 parent f0aa876 commit 4f68928
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugins/hardhat.plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ task(TASK_COMPILE_SOLIDITY_GET_COMPILATION_JOB_FOR_FILE).setAction(async (_, __,
settings.metadata.useLiteralContent = false;
// Override optimizer settings for all compilers
settings.optimizer.enabled = false;
settings.optimizer.details = {
yul: true,
yulDetails: {
stackAllocation: true,
},
}
return compilationJob;
});
Expand Down

0 comments on commit 4f68928

Please sign in to comment.