You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added an `enableRip7212` optional flag to the Hardhat Network config that enables [RIP-7212 (Precompile for secp256r1 Curve Support)](https://github.com/ethereum/RIPs/blob/master/RIPS/rip-7212.md).
Copy file name to clipboardexpand all lines: docs/src/content/hardhat-network/docs/reference/index.md
+4
Original file line number
Diff line number
Diff line change
@@ -122,6 +122,10 @@ The `baseFeePerGas` of the first block. Note that when forking a remote network,
122
122
123
123
The address used as coinbase in new blocks. Default value: `"0xc014ba5ec014ba5ec014ba5ec014ba5ec014ba5e"`.
124
124
125
+
#### `enableRip7212`
126
+
127
+
A flag indicating whether to enable [RIP-7212 (Precompile for secp256r1 Curve Support)](https://github.com/ethereum/RIPs/blob/master/RIPS/rip-7212.md). Default value: `false`.
128
+
125
129
### Mining modes
126
130
127
131
You can configure the mining behavior under your Hardhat Network settings:
2. Install the Hardhat Ignition package and `hardhat-network-helpers` to provide additional testing support as a replacement for `hardhat-deploy` functionality like EVM snapshots:
`hardhat-deploy` represents contract deployments as JavaScript or TypeScript files under the `./deploy/` folder. Hardhat Ignition follows a similar pattern with deployments encapsulated as modules; these are JS/TS files stored under the `./ignition/modules directory`. Each `hardhat-deploy` deploy file will be converted or merged into a Hardhat Ignition module.
81
+
`hardhat-deploy` represents contract deployments as JavaScript or TypeScript files under the `./deploy/` folder. Hardhat Ignition follows a similar pattern with deployments encapsulated as modules; these are JS/TS files stored under the `./ignition/modules` directory. Each `hardhat-deploy` deploy file will be converted or merged into a Hardhat Ignition module.
82
82
83
83
Let’s first create the required folder structure under the root of your project:
84
84
@@ -97,13 +97,16 @@ contract Token {
97
97
uint256 public totalSupply = 1000000;
98
98
address public owner;
99
99
mapping(address => uint256) balances;
100
+
100
101
constructor(address _owner) {
101
102
balances[_owner] = totalSupply;
102
103
owner = _owner;
103
104
}
105
+
104
106
function balanceOf(address account) external view returns (uint256) {
105
107
return balances[account];
106
108
}
109
+
107
110
function transfer(address to, uint256 amount) external {
0 commit comments