Skip to content

Commit

Permalink
fix (consensus): revert changes to taikoL2AddressPrefix
Browse files Browse the repository at this point in the history
  • Loading branch information
vikinatora committed Jan 13, 2025
1 parent f9def96 commit 6dbbea7
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions consensus/taiko/consensus.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,16 @@ type Taiko struct {
var _ = new(Taiko)

func New(chainConfig *params.ChainConfig) *Taiko {
//taikoL2AddressPrefix := strings.TrimPrefix(chainConfig.ChainID.String(), "0")
taikoL2Address := common.HexToAddress("0x9A7fe8e9852c684DD03ce9caEa003F5Fc0a3135b")
taikoL2AddressPrefix := strings.TrimPrefix(chainConfig.ChainID.String(), "0")

return &Taiko{
chainConfig: chainConfig,
taikoL2Address: taikoL2Address,
chainConfig: chainConfig,
taikoL2Address: common.HexToAddress(
"0x" +
taikoL2AddressPrefix +
strings.Repeat("0", common.AddressLength*2-len(taikoL2AddressPrefix)-len(TaikoL2AddressSuffix)) +
TaikoL2AddressSuffix,
),
}
}

Expand Down

0 comments on commit 6dbbea7

Please sign in to comment.