Skip to content

Commit

Permalink
fix(big-int): add missed ContextValidate method
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuk committed Jun 9, 2021
1 parent 9624325 commit 31b0075
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions utils/utils.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package utils

import (
"context"
"errors"
"fmt"
"math/big"
Expand Down Expand Up @@ -28,6 +29,11 @@ func (b *BigInt) Validate(formats strfmt.Registry) error {
return nil
}

// ContextValidate does the same as Validate
func (b *BigInt) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return b.Validate(formats)
}

// LargerThanZero returns true if it is >0
func (b *BigInt) LargerThanZero() bool {
zero := new(BigInt)
Expand Down

0 comments on commit 31b0075

Please sign in to comment.