hardhat-ignore-warnings
Advanced tools
Comparing version
@@ -15,2 +15,3 @@ export declare const errorCodes: { | ||
readonly 'missing-receive': 3628; | ||
readonly 'transient-storage': 2394; | ||
}; | ||
@@ -17,0 +18,0 @@ export declare type WarningId = number | keyof typeof errorCodes; |
@@ -18,2 +18,3 @@ "use strict"; | ||
'missing-receive': 3628, | ||
'transient-storage': 2394, | ||
}; | ||
@@ -20,0 +21,0 @@ function getErrorCode(id) { |
{ | ||
"name": "hardhat-ignore-warnings", | ||
"version": "0.2.9", | ||
"version": "0.2.10", | ||
"description": "Hardhat plugin to ignore Solidity warnings", | ||
@@ -5,0 +5,0 @@ "author": "Francisco Giordano <fg@frang.io>", |
@@ -83,1 +83,3 @@ # hardhat-ignore-warnings | ||
- `missing-receive`: "This contract has a payable fallback function, but no receive ether function. Consider adding a receive ether function." -- To ignore this warning with a comment, it must be placed before the contract definition. | ||
- `transient-storage`: "Transient storage as defined by EIP-1153 can break the composability of smart contracts: Since transient storage is cleared only at the end of the transaction and not at the end of the outermost call frame to the contract within a transaction, your contract may unintentionally misbehave when invoked multiple times in a complex transaction. To avoid this, be sure to clear all transient storage at the end of any call to your contract. The use of transient storage for reentrancy guards that are cleared at the end of the call is safe." | ||
@@ -15,2 +15,3 @@ export const errorCodes = { | ||
'missing-receive': 3628, | ||
'transient-storage': 2394, | ||
} as const; | ||
@@ -17,0 +18,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
29314
2.41%483
0.63%85
2.41%