Skip to content

Commit 7c24795

Browse files
alcuadrados1na
authored andcommitted
Improve activatePrecompiles doc (ethereumjs#595)
1 parent 87b1880 commit 7c24795

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

lib/index.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,14 @@ export interface VMOpts {
4040
*/
4141
blockchain?: Blockchain
4242
/**
43-
* If true, create entries in the state tree for the precompiled contracts
43+
* If true, create entries in the state tree for the precompiled contracts, saving some gas the
44+
* first time each of them is called.
45+
*
46+
* If this parameter is false, the first call to each of them has to pay an extra 25000 gas
47+
* for creating the account.
48+
*
49+
* Setting this to true has the effect of precompiled contracts' gas costs matching mainnet's from
50+
* the very first call, which is intended for testing networks.
4451
*/
4552
activatePrecompiles?: boolean
4653
/**

0 commit comments

Comments
 (0)