feat(sender): support web3signer (#1524)

This commit is contained in:
Nazarii Denha
2024-10-03 12:49:12 +02:00
committed by GitHub
parent a1d1cbc2e5
commit e3c87e6547
16 changed files with 535 additions and 146 deletions

View File

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