Skip to content

Commit ec73870

Browse files
author
Ilan
committed
Lint
1 parent 3b7f054 commit ec73870

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

framework/components/blockchain/anvil.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package blockchain
22

33
import (
4-
"fmt"
54
"strings"
65

76
"github.com/smartcontractkit/chainlink-testing-framework/framework"
@@ -28,7 +27,7 @@ func newAnvil(in *Input) (*Output, error) {
2827
defaultAnvil(in)
2928
req := baseRequest(in)
3029

31-
req.Image = fmt.Sprintf("%s", in.Image)
30+
req.Image = in.Image
3231
req.AlwaysPullImage = in.PullImage
3332

3433
entryPoint := []string{"anvil"}

framework/components/blockchain/anvil_zksync.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func newAnvilZksync(in *Input) (*Output, error) {
5252

5353
dockerfilePath := filepath.Join(tempDir, "anvilZksync.Dockerfile")
5454

55-
if err := os.WriteFile(dockerfilePath, []byte(dockerFile), 0644); err != nil {
55+
if err := os.WriteFile(dockerfilePath, []byte(dockerFile), 0600); err != nil {
5656
return nil, err
5757
}
5858
req.FromDockerfile = testcontainers.FromDockerfile{

framework/components/blockchain/blockchain_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func testChain(t *testing.T, input *blockchain.Input) {
5454

5555
rpcUrl := output.Nodes[0].HostHTTPUrl
5656
reqBody := `{"jsonrpc": "2.0", "method": "eth_chainId", "params": [], "id": 1}`
57-
resp, err := http.Post(rpcUrl, "application/json", strings.NewReader(reqBody))
57+
resp, err := http.Post(rpcUrl, "application/json", strings.NewReader(reqBody)) // nolint:gosec
5858
require.NoError(t, err)
5959
defer resp.Body.Close()
6060
require.Equal(t, http.StatusOK, resp.StatusCode)

0 commit comments

Comments
 (0)