fix: override config values use viper (#1502)

Co-authored-by: colin <102356659+colinlyguo@users.noreply.github.com>
This commit is contained in:
Morty
2024-08-28 18:53:20 +08:00
committed by GitHub
parent a528103260
commit 2ee1c898f0
11 changed files with 519 additions and 131 deletions

View File

@@ -68,7 +68,9 @@ func testGreeter(t *testing.T) {
chainID, err := l2Cli.ChainID(context.Background())
assert.NoError(t, err)
auth, err := bind.NewKeyedTransactorWithChainID(rollupApp.Config.L2Config.RelayerConfig.CommitSenderPrivateKey, chainID)
pKey, err := crypto.ToECDSA(common.FromHex(rollupApp.Config.L2Config.RelayerConfig.CommitSenderPrivateKey))
assert.NoError(t, err)
auth, err := bind.NewKeyedTransactorWithChainID(pKey, chainID)
assert.NoError(t, err)
token, err := greeter.NewGreeter(greeterAddress, l2Cli)