Add error as return parameter

This commit is contained in:
Zoltan Papp
2024-02-29 13:55:13 +01:00
parent 2e4fe24074
commit fe3dfb0d00
+2 -2
View File
@@ -8,8 +8,8 @@ import (
type IntegratedApprovalImpl struct {
}
func NewIntegratedApproval() *IntegratedApprovalImpl {
return &IntegratedApprovalImpl{}
func NewIntegratedApproval() (*IntegratedApprovalImpl, error) {
return &IntegratedApprovalImpl{}, nil
}
func (v *IntegratedApprovalImpl) PreparePeer(_ string, peer *nbpeer.Peer, _ []string, _ *account.ExtraSettings) *nbpeer.Peer {