File tree 2 files changed +7
-10
lines changed
packages/hardhat-core/src/internal/core/providers
2 files changed +7
-10
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " hardhat " : patch
3
+ ---
4
+
5
+ Relax validations for transaction signing introduced in the previous version by disabling strict mode in ` Transaction.prepare ` .
Original file line number Diff line number Diff line change @@ -295,6 +295,8 @@ export class LocalAccountsProvider extends ProviderWrapperWithChainId {
295
295
) ;
296
296
297
297
let transaction ;
298
+ // strict mode is not meant to be used in the context of hardhat
299
+ const strictMode = false ;
298
300
const baseTxParams = {
299
301
to : checksummedAddress ,
300
302
nonce : txData . nonce ,
@@ -304,16 +306,6 @@ export class LocalAccountsProvider extends ProviderWrapperWithChainId {
304
306
gasLimit : txData . gasLimit ,
305
307
} ;
306
308
307
- // Disable strict mode for chainIds > 2 ** 32 - 1.
308
- //
309
- // micro-eth-signer throws if strict mode is enabled with a chainId above 2 ** 32 - 1
310
- // (see: https://github.com/paulmillr/micro-eth-signer/blob/baa4b8c922c3253b125e3f46b1fce6dee7c33853/src/tx.ts#L500).
311
- //
312
- // As a workaround we disable strict mode for larger chains. This also bypasses
313
- // other internal checks enforced by the library, which is not ideal.
314
- const strictMode =
315
- txData . chainId === undefined || txData . chainId <= BigInt ( 2 ** 32 - 1 ) ;
316
-
317
309
if ( authorizationList !== undefined ) {
318
310
assertHardhatInvariant (
319
311
txData . maxFeePerGas !== undefined ,
You can’t perform that action at this time.
0 commit comments