Skip to content

Commit

Permalink
Lint fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanIliev545 committed Sep 28, 2023
1 parent 4af1872 commit 51f5d07
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
6 changes: 3 additions & 3 deletions go/wallet/wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type Wallet interface {
Address() common.Address
// SignTransaction returns a signed transaction
SignTransaction(tx types.TxData) (*types.Transaction, error)
SignTransactionForChainID(tx types.TxData, chainId *big.Int) (*types.Transaction, error)
SignTransactionForChainID(tx types.TxData, chainID *big.Int) (*types.Transaction, error)

// SetNonce overrides the current nonce
// The GetTransactionCount is expected to be the next nonce to use in a transaction, not the current account GetTransactionCount
Expand Down Expand Up @@ -72,8 +72,8 @@ func (m *inMemoryWallet) SignTransaction(tx types.TxData) (*types.Transaction, e
return types.SignNewTx(m.prvKey, types.NewLondonSigner(m.chainID), tx)
}

func (m *inMemoryWallet) SignTransactionForChainID(tx types.TxData, chainId *big.Int) (*types.Transaction, error) {
return types.SignNewTx(m.prvKey, types.NewLondonSigner(chainId), tx)
func (m *inMemoryWallet) SignTransactionForChainID(tx types.TxData, chainID *big.Int) (*types.Transaction, error) {
return types.SignNewTx(m.prvKey, types.NewLondonSigner(chainID), tx)
}

// Address returns the current wallet address
Expand Down
4 changes: 2 additions & 2 deletions integration/networktest/userwallet/userwallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ func (s *UserWallet) SignTransaction(tx types.TxData) (*types.Transaction, error
return types.SignNewTx(s.privateKey, types.NewLondonSigner(s.chainID), tx)
}

func (s *UserWallet) SignTransactionForChainID(tx types.TxData, chainId *big.Int) (*types.Transaction, error) {
return types.SignNewTx(s.privateKey, types.NewLondonSigner(chainId), tx)
func (s *UserWallet) SignTransactionForChainID(tx types.TxData, chainID *big.Int) (*types.Transaction, error) {
return types.SignNewTx(s.privateKey, types.NewLondonSigner(chainID), tx)
}

func (s *UserWallet) GetNonce() uint64 {
Expand Down
6 changes: 1 addition & 5 deletions integration/simulation/simulation.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ func (s *Simulation) bridgeFundingToObscuro() {
gethcommon.HexToAddress("0xDEe530E22045939e6f6a0A593F829e35A140D3F1"),
}

transactions := make([]*types.Transaction, 0)
ethClient := s.RPCHandles.RndEthClient()

busCtr, err := MessageBus.NewMessageBus(destAddr, ethClient.EthClient())
Expand All @@ -148,19 +147,16 @@ func (s *Simulation) bridgeFundingToObscuro() {
}

for idx, wallet := range wallets {

opts, err := bind.NewKeyedTransactorWithChainID(wallet.PrivateKey(), wallet.ChainID())
if err != nil {
panic(err)
}
opts.Value = value

tx, err := busCtr.SendValueToL2(opts, receivers[idx], value)
_, err = busCtr.SendValueToL2(opts, receivers[idx], value)
if err != nil {
panic(err)
}

transactions = append(transactions, tx)
}

time.Sleep(3 * time.Second)
Expand Down

0 comments on commit 51f5d07

Please sign in to comment.