Skip to content

Commit ebedd65

Browse files
author
Roberto Bayardo
authored
Update README.md to describe new ecotone-scalar decode flag (ethereum-optimism#10565)
* Update README.md to describe new ecotone-scalar decode flag ecotone-scalar was updated in ethereum-optimism#10547 to support value decoding but didn't include an update to this documentation. * allow non-decimal scalar values to decode
1 parent c20b544 commit ebedd65

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

op-chain-ops/cmd/ecotone-scalar/README.md

+6
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,9 @@ blob base fee parameters respectively, for example:
1818
```sh
1919
./bin/ecotone-scalar --scalar=7600 --blob-scalar=862000
2020
```
21+
22+
You can also use the utility to decode a versioned value into its components:
23+
24+
```sh
25+
./bin/ecotone-scalar --decode=452312848583266388373324160190187140051835877600158453279134021569375896653
26+
```

op-chain-ops/cmd/ecotone-scalar/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func main() {
3737
os.Exit(2)
3838
}
3939
uint256 := new(big.Int)
40-
_, ok := uint256.SetString(decode, 10)
40+
_, ok := uint256.SetString(decode, 0)
4141
if !ok {
4242
fmt.Fprintln(flag.CommandLine.Output(), "failed to parse int from post-ecotone scalar")
4343
flag.Usage()

0 commit comments

Comments
 (0)