Skip to content

Commit

Permalink
params/types/multigeth: fix multigeth String method to not stack over…
Browse files Browse the repository at this point in the history
…flow

Date: 2022-06-21 12:11:12-07:00
Signed-off-by: meows <[email protected]>
  • Loading branch information
meowsbits committed Jun 21, 2022
1 parent 4edf6c8 commit 74c4798
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package multigeth

import (
"encoding/json"
"math/big"

"github.com/davecgh/go-spew/spew"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/params/types/ctypes"
"github.com/ethereum/go-ethereum/params/types/internal"
Expand Down Expand Up @@ -1036,5 +1036,6 @@ func (c *ChainConfig) SetLyra2NonceTransition(n *uint64) error {
}

func (c *ChainConfig) String() string {
return spew.Sdump(c)
j, _ := json.MarshalIndent(c, "", " ")
return "Multigeth Config: " + string(j)
}

0 comments on commit 74c4798

Please sign in to comment.