Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
chore: add sepolia as a hardfork option
Browse files Browse the repository at this point in the history
  • Loading branch information
tenthirtyone committed Aug 25, 2022
1 parent 591d025 commit 403fce1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/chains/ethereum/options/src/chain-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ const HARDFORKS = [
"berlin",
"london",
"arrowGlacier",
"grayGlacier"
"grayGlacier",
"sepolia"
] as const;

export type Hardfork = Writeable<ArrayToTuple<typeof HARDFORKS>>;
Expand Down
3 changes: 2 additions & 1 deletion src/chains/ethereum/transaction/src/hardfork.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ export type Hardfork =
| "berlin"
| "london"
| "arrowGlacier"
| "grayGlacier";
| "grayGlacier"
| "sepolia";
6 changes: 4 additions & 2 deletions src/chains/ethereum/transaction/src/params.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ export const Params = {
| "berlin"
| "london"
| "arrowGlacier"
| "grayGlacier",
| "grayGlacier"
| "sepolia",
bigint
>([
["chainstart", 68n],
Expand All @@ -43,7 +44,8 @@ export const Params = {
["berlin", 16n],
["london", 16n],
["arrowGlacier", 16n],
["grayGlacier", 16n]
["grayGlacier", 16n],
["sepolia", 16n]
]),

/**
Expand Down
2 changes: 1 addition & 1 deletion src/packages/ganache/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ Chain:
-k, --chain.hardfork Set the hardfork rules for the EVM.
deprecated aliases: --hardfork
[string] [choices: "constantinople", "byzantium", "petersburg", "istanbul", "muirGlacier", "berlin",
london", "arrowGlacier", "grayGlacier"] [default: grayGlacier]
london", "arrowGlacier", "grayGlacier", "sepolia"] [default: grayGlacier]

--chain.vmErrorsOnRPCResponse Whether to report runtime errors from EVM code as RPC errors.
[boolean] [default: false]
Expand Down

0 comments on commit 403fce1

Please sign in to comment.