From 9d9570137279e376d9c744dafc5d83af510cf4b5 Mon Sep 17 00:00:00 2001 From: Nazarii Denha Date: Mon, 30 Sep 2024 10:30:39 +0200 Subject: [PATCH] add comment --- common/testcontainers/testcontainers.go | 2 ++ common/testcontainers/web3signerconf/keyconf.yaml | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/common/testcontainers/testcontainers.go b/common/testcontainers/testcontainers.go index 7adcd6eee..eb53152cd 100644 --- a/common/testcontainers/testcontainers.go +++ b/common/testcontainers/testcontainers.go @@ -124,6 +124,8 @@ func (t *TestcontainerApps) StartWeb3SignerContainer(chainId int) error { if rootDir, err = findProjectRootDir(); err != nil { return fmt.Errorf("failed to find project root directory: %v", err) } + + // web3signerconf/keyconf.yaml may contain multiple keys configured and web3signer then choses one corresponding to from field of tx web3SignerConfDir := filepath.Join(rootDir, "common", "testcontainers", "web3signerconf") req := testcontainers.ContainerRequest{ diff --git a/common/testcontainers/web3signerconf/keyconf.yaml b/common/testcontainers/web3signerconf/keyconf.yaml index 1a8ec9675..317f8763f 100644 --- a/common/testcontainers/web3signerconf/keyconf.yaml +++ b/common/testcontainers/web3signerconf/keyconf.yaml @@ -1,3 +1,7 @@ type: "file-raw" keyType: "SECP256K1" +privateKey: "0x1313131313131313131313131313131313131313131313131313131313131313" +--- +type: "file-raw" +keyType: "SECP256K1" privateKey: "0x1212121212121212121212121212121212121212121212121212121212121212" \ No newline at end of file