Skip to content

Commit 552cbb1

Browse files
committed
wait for funding on testnet
1 parent 634ce9d commit 552cbb1

File tree

1 file changed

+3
-1
lines changed
  • framework/components/simple_node_set

1 file changed

+3
-1
lines changed

framework/components/simple_node_set/fund.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"crypto/ecdsa"
66
"errors"
77
"fmt"
8+
"github.com/ethereum/go-ethereum/accounts/abi/bind"
89
"github.com/ethereum/go-ethereum/common"
910
"github.com/ethereum/go-ethereum/core/types"
1011
"github.com/ethereum/go-ethereum/crypto"
@@ -57,7 +58,8 @@ func SendETH(client *ethclient.Client, privateKeyHex string, toAddress string, a
5758
return fmt.Errorf("failed to send transaction: %v", err)
5859
}
5960
framework.L.Info().Msgf("Transaction sent: %s", signedTx.Hash().Hex())
60-
return nil
61+
_, err = bind.WaitMined(context.Background(), client, tx)
62+
return err
6163
}
6264

6365
// FundNodes funds Chainlink nodes with N ETH each

0 commit comments

Comments
 (0)