Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mossid committed Aug 29, 2018
1 parent 866a229 commit 6c8aad3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions proof_iavl_absence.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const ProofOpIAVLAbsence = "iavl:a"
// is good.
type IAVLAbsenceOp struct {
// Encoded in ProofOp.Key.
key string
key []byte

// To encode in ProofOp.Data.
// Proof is nil for an empty tree.
Expand All @@ -25,7 +25,7 @@ type IAVLAbsenceOp struct {

var _ merkle.ProofOperator = IAVLAbsenceOp{}

func NewIAVLAbsenceOp(key string, proof *RangeProof) IAVLAbsenceOp {
func NewIAVLAbsenceOp(key []byte, proof *RangeProof) IAVLAbsenceOp {
return IAVLAbsenceOp{
key: key,
Proof: proof,
Expand Down Expand Up @@ -82,6 +82,6 @@ func (op IAVLAbsenceOp) Run(args [][]byte) ([][]byte, error) {
return [][]byte{root}, nil
}

func (op IAVLAbsenceOp) GetKey() string {
func (op IAVLAbsenceOp) GetKey() []byte {
return op.key
}
6 changes: 3 additions & 3 deletions proof_iavl_value.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const ProofOpIAVLValue = "iavl:v"
// is good.
type IAVLValueOp struct {
// Encoded in ProofOp.Key.
key string
key []byte

// To encode in ProofOp.Data.
// Proof is nil for an empty tree.
Expand All @@ -26,7 +26,7 @@ type IAVLValueOp struct {

var _ merkle.ProofOperator = IAVLValueOp{}

func NewIAVLValueOp(key string, proof *RangeProof) IAVLValueOp {
func NewIAVLValueOp(key []byte, proof *RangeProof) IAVLValueOp {
return IAVLValueOp{
key: key,
Proof: proof,
Expand Down Expand Up @@ -81,6 +81,6 @@ func (op IAVLValueOp) Run(args [][]byte) ([][]byte, error) {
return [][]byte{root}, nil
}

func (op IAVLValueOp) GetKey() string {
func (op IAVLValueOp) GetKey() []byte {
return op.key
}

0 comments on commit 6c8aad3

Please sign in to comment.