Skip to content

Commit

Permalink
[VRF-887] Add NativePayment() to VRFCoordinator_2x_Interface and inte…
Browse files Browse the repository at this point in the history
…g tests (#12133)
  • Loading branch information
vreff authored Feb 22, 2024
1 parent 18a004c commit 16f1b78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/services/vrf/v2/coordinator_v2x_interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,7 @@ type RandomWordsFulfilled interface {
SubID() *big.Int
Payment() *big.Int
Raw() types.Log
NativePayment() bool
}

func NewV2RandomWordsFulfilled(event *vrf_coordinator_v2.VRFCoordinatorV2RandomWordsFulfilled) RandomWordsFulfilled {
Expand Down
1 change: 1 addition & 0 deletions core/services/vrf/v2/integration_v2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -751,6 +751,7 @@ func assertRandomWordsFulfilled(
for filter.Next() {
require.Equal(t, expectedSuccess, filter.Event().Success(), "fulfillment event success not correct, expected: %+v, actual: %+v", expectedSuccess, filter.Event().Success())
require.Equal(t, requestID, filter.Event().RequestID())
require.Equal(t, nativePayment, filter.Event().NativePayment())
found = true
rwfe = filter.Event()
}
Expand Down

0 comments on commit 16f1b78

Please sign in to comment.