Skip to content

Commit b2dd132

Browse files
committed
Gnerate a keypair to allow for read only calls
1 parent 8ca3a2d commit b2dd132

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/app.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ import (
3939
coreEvm "github.com/sygmaprotocol/sygma-core/chains/evm"
4040
evmClient "github.com/sygmaprotocol/sygma-core/chains/evm/client"
4141
coreListener "github.com/sygmaprotocol/sygma-core/chains/evm/listener"
42+
"github.com/sygmaprotocol/sygma-core/crypto/secp256k1"
4243

4344
"github.com/sygmaprotocol/sygma-core/observability"
4445
"github.com/sygmaprotocol/sygma-core/relayer"
@@ -155,7 +156,8 @@ func Run() error {
155156
}
156157

157158
if config.HubPool != "" {
158-
client, err := evmClient.NewEVMClient(config.GeneralChainConfig.Endpoint, nil)
159+
kp, _ := secp256k1.GenerateKeypair()
160+
client, err := evmClient.NewEVMClient(config.GeneralChainConfig.Endpoint, kp)
159161
panicOnError(err)
160162

161163
hubPoolAddress := common.HexToAddress(config.HubPool)

0 commit comments

Comments
 (0)