Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
schimih committed Dec 7, 2022
1 parent 0bed6ef commit 83af631
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions data/mock/pubkeyConverterStub.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
package mock

import "github.com/ElrondNetwork/elrond-go-core/core"

// PubkeyConverterStub -
type PubkeyConverterStub struct {
LenCalled func() int
DecodeCalled func(humanReadable string) ([]byte, error)
EncodeCalled func(pkBytes []byte) (string, error)
EncodeSliceCalled func(pkBytesSlice [][]byte) ([]string, error)
QuietEncodeCalled func(pkBytes []byte) string
QuietEncodeCalled func(pkBytes []byte, log core.Logger) string
}

// Len -
Expand Down Expand Up @@ -46,9 +48,9 @@ func (pcs *PubkeyConverterStub) EncodeSlice(pkBytesSlice [][]byte) ([]string, er
}

// QuietEncode -
func (pcs *PubkeyConverterStub) QuietEncode(pkBytes []byte) string {
func (pcs *PubkeyConverterStub) QuietEncode(pkBytes []byte, log core.Logger) string {
if pcs.EncodeCalled != nil {
return pcs.QuietEncodeCalled(pkBytes)
return pcs.QuietEncodeCalled(pkBytes, log)
}

return ""
Expand Down

0 comments on commit 83af631

Please sign in to comment.