Skip to content

Commit

Permalink
VRF-881: fixing lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
iljapavlovs committed Feb 24, 2024
1 parent 58b8b18 commit d03afbb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions integration-tests/actions/vrf/vrfv2plus/vrfv2plus_steps.go
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,9 @@ func SetupVRFV2PlusContracts(
vrfContracts.CoordinatorV2Plus, vrfContracts.VRFV2PlusConsumer,
numberOfSubToCreate,
)
if err != nil {
return nil, nil, err
}
return vrfContracts, subIDs, nil
}

Expand Down
6 changes: 3 additions & 3 deletions integration-tests/smoke/vrfv2plus_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ func TestVRFv2Plus(t *testing.T) {
)
require.NoError(t, err, "error requesting randomness and waiting for fulfilment")

require.False(t, randomWordsFulfilledEvent.OnlyPremium)
require.Equal(t, isNativeBilling, randomWordsFulfilledEvent.NativePayment)
require.True(t, randomWordsFulfilledEvent.Success)
require.False(t, randomWordsFulfilledEvent.OnlyPremium, "RandomWordsFulfilled Event's `OnlyPremium` field should be false")
require.Equal(t, isNativeBilling, randomWordsFulfilledEvent.NativePayment, "RandomWordsFulfilled Event's `NativePayment` field should be false")
require.True(t, randomWordsFulfilledEvent.Success, "RandomWordsFulfilled Event's `Success` field should be true")

expectedSubBalanceJuels := new(big.Int).Sub(subBalanceBeforeRequest, randomWordsFulfilledEvent.Payment)
subscription, err = vrfv2PlusContracts.CoordinatorV2Plus.GetSubscription(testcontext.Get(t), subID)
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/testconfig/vrfv2/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func (c *Config) Validate() error {
return err
}
}
if c.ExistingEnvConfig != nil && *c.General.UseExistingEnv == true {
if c.ExistingEnvConfig != nil && *c.General.UseExistingEnv {
if err := c.ExistingEnvConfig.Validate(); err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/testconfig/vrfv2plus/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func (c *Config) Validate() error {
return err
}
}
if c.ExistingEnvConfig != nil && *c.General.UseExistingEnv == true {
if c.ExistingEnvConfig != nil && *c.General.UseExistingEnv {
if err := c.ExistingEnvConfig.Validate(); err != nil {
return err
}
Expand Down

0 comments on commit d03afbb

Please sign in to comment.