Skip to content

Commit

Permalink
VRF-798: fix runtime issue
Browse files Browse the repository at this point in the history
  • Loading branch information
iljapavlovs committed Dec 13, 2023
1 parent 887d9ab commit 521b0a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion integration-tests/load/vrfv2/vrfv2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func TestVRFV2Performance(t *testing.T) {
require.NoError(t, err, vrfv2_actions.ErrWaitTXsComplete)
}
l.Info().
Str("Coordinator", vrfv2Contracts.Coordinator.Address()).
Str("Coordinator", cfg.ExistingEnvConfig.CoordinatorAddress).
Int("Number of Subs to create", vrfv2Config.NumberOfSubToCreate).
Msg("Creating and funding subscriptions, deploying and adding consumers to subs")
subIDs, err = vrfv2_actions.CreateFundSubsAndAddConsumers(
Expand Down
11 changes: 2 additions & 9 deletions integration-tests/load/vrfv2plus/vrfv2plus_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"testing"
"time"

"github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/common"
"github.com/kelseyhightower/envconfig"
"github.com/rs/zerolog"
Expand Down Expand Up @@ -122,7 +121,7 @@ func TestVRFV2PlusPerformance(t *testing.T) {
require.NoError(t, err, vrfv2plus.ErrWaitTXsComplete)
}
l.Info().
Str("Coordinator", vrfv2PlusContracts.Coordinator.Address()).
Str("Coordinator", cfg.ExistingEnvConfig.CoordinatorAddress).
Int("Number of Subs to create", vrfv2PlusConfig.NumberOfSubToCreate).
Msg("Creating and funding subscriptions, deploying and adding consumers to subs")
subIDs, err = vrfv2plus.CreateFundSubsAndAddConsumers(
Expand Down Expand Up @@ -316,13 +315,7 @@ func FundNodesIfNeeded(cfg *PerformanceConfig, client blockchain.EVMClient, l ze
Str("Should have at least", fundingAtLeast.String()).
Str("Funding Amount in ETH", fundingToSendEth.String()).
Msg("Funding Node's Sending Key")
gasEstimates, err := client.EstimateGas(ethereum.CallMsg{
To: &address,
})
if err != nil {
return err
}
err = client.Fund(sendingKey, fundingToSendEth, gasEstimates)
err := actions.FundAddress(client, sendingKey, fundingToSendEth)
if err != nil {
return err
}
Expand Down

0 comments on commit 521b0a8

Please sign in to comment.