-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[v2] integrate with new payments contract #995
base: master
Are you sure you want to change the base?
Conversation
e849753
to
cd399d4
Compare
@@ -210,6 +210,18 @@ func (t *Reader) updateContractBindings(blsOperatorStateRetrieverAddr, eigenDASe | |||
} | |||
} | |||
|
|||
paymentVaultAddr, err := contractEigenDAServiceManager.PaymentVault(&bind.CallOpts{}) | |||
if err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's not fail and account for the case contract isn't deployed like threshold registry above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay, edited to just log
core/eth/reader.go
Outdated
@@ -691,9 +703,6 @@ func (t *Reader) GetAllVersionedBlobParams(ctx context.Context) (map[uint16]*cor | |||
} | |||
|
|||
func (t *Reader) GetReservedPayments(ctx context.Context, accountIDs []gethcommon.Address) (map[gethcommon.Address]*core.ReservedPayment, error) { | |||
if t.bindings.PaymentVault == nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's keep them until contract is deployed on mainnet
Why are these changes needed?
Generated new contract bindings
Updated to corresponding names
Update contract bindings to include payment vault initialization
Checks