From 11f92b584a556712b52c96c03835e19665f8ffd3 Mon Sep 17 00:00:00 2001 From: Will Hester Date: Thu, 19 Dec 2024 18:00:31 +0000 Subject: [PATCH] lint --- go/common/l1_transaction.go | 3 ++- go/ethadapter/erc20contractlib/erc20_contract_lib.go | 3 ++- integration/ethereummock/mgmt_contract_lib.go | 1 + integration/smartcontract/debug_mgmt_contract_lib.go | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/go/common/l1_transaction.go b/go/common/l1_transaction.go index 6db857053e..b55642f9e2 100644 --- a/go/common/l1_transaction.go +++ b/go/common/l1_transaction.go @@ -3,11 +3,12 @@ package common import ( "crypto/ecdsa" "fmt" + "math/big" + gethcommon "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/crypto/kzg4844" - "math/big" ) // L1TenTransaction is an abstraction that transforms an Ethereum transaction into a format that can be consumed more diff --git a/go/ethadapter/erc20contractlib/erc20_contract_lib.go b/go/ethadapter/erc20contractlib/erc20_contract_lib.go index d491871155..2f465b663f 100644 --- a/go/ethadapter/erc20contractlib/erc20_contract_lib.go +++ b/go/ethadapter/erc20contractlib/erc20_contract_lib.go @@ -1,10 +1,11 @@ package erc20contractlib import ( - "github.com/ten-protocol/go-ten/go/common" "math/big" "strings" + "github.com/ten-protocol/go-ten/go/common" + "github.com/ethereum/go-ethereum/accounts/abi" gethcommon "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/types" diff --git a/integration/ethereummock/mgmt_contract_lib.go b/integration/ethereummock/mgmt_contract_lib.go index 39e31e80d8..fc32a9b898 100644 --- a/integration/ethereummock/mgmt_contract_lib.go +++ b/integration/ethereummock/mgmt_contract_lib.go @@ -4,6 +4,7 @@ import ( "bytes" "encoding/gob" "fmt" + "github.com/ten-protocol/go-ten/go/common" "github.com/ten-protocol/go-ten/go/host/l1" diff --git a/integration/smartcontract/debug_mgmt_contract_lib.go b/integration/smartcontract/debug_mgmt_contract_lib.go index cf7d29b7ec..3cf78c6816 100644 --- a/integration/smartcontract/debug_mgmt_contract_lib.go +++ b/integration/smartcontract/debug_mgmt_contract_lib.go @@ -41,7 +41,7 @@ func (d *debugMgmtContractLib) AwaitedIssueRollup(rollup common.ExtRollup, clien if err != nil { return err } - txData, err := d.CreateBlobRollup(ðadapter.L1RollupTx{Rollup: encodedRollup}) + txData, err := d.CreateBlobRollup(&common.L1RollupTx{Rollup: encodedRollup}) if err != nil { return fmt.Errorf("failed to create blob rollup: %w", err) }