Commit ebedd65d authored by Roberto Bayardo's avatar Roberto Bayardo Committed by GitHub

Update README.md to describe new ecotone-scalar decode flag (#10565)

* Update README.md to describe new ecotone-scalar decode flag

ecotone-scalar was updated in https://github.com/ethereum-optimism/optimism/pull/10547 to support value decoding but didn't include an update to this documentation.

* allow non-decimal scalar values to decode
parent c20b5442
...@@ -18,3 +18,9 @@ blob base fee parameters respectively, for example: ...@@ -18,3 +18,9 @@ blob base fee parameters respectively, for example:
```sh ```sh
./bin/ecotone-scalar --scalar=7600 --blob-scalar=862000 ./bin/ecotone-scalar --scalar=7600 --blob-scalar=862000
``` ```
You can also use the utility to decode a versioned value into its components:
```sh
./bin/ecotone-scalar --decode=452312848583266388373324160190187140051835877600158453279134021569375896653
```
...@@ -37,7 +37,7 @@ func main() { ...@@ -37,7 +37,7 @@ func main() {
os.Exit(2) os.Exit(2)
} }
uint256 := new(big.Int) uint256 := new(big.Int)
_, ok := uint256.SetString(decode, 10) _, ok := uint256.SetString(decode, 0)
if !ok { if !ok {
fmt.Fprintln(flag.CommandLine.Output(), "failed to parse int from post-ecotone scalar") fmt.Fprintln(flag.CommandLine.Output(), "failed to parse int from post-ecotone scalar")
flag.Usage() flag.Usage()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment