Skip to content

Commit

Permalink
fix spell
Browse files Browse the repository at this point in the history
  • Loading branch information
justlovediaodiao committed Dec 12, 2022
1 parent a051d41 commit 52c6cf4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
@@ -64,7 +64,7 @@ func hash(v string) string {
return hex.EncodeToString(b)
}

type MarkelProof struct {
type MerkleProof struct {
Root struct {
Balances Balance
Hash string
@@ -80,7 +80,7 @@ type MarkelProof struct {
}
}

func (m *MarkelProof) Validate() bool {
func (m *MerkleProof) Validate() bool {
h := hash(m.Self.Nonce + m.Self.Balances.Format())
b := m.Self.Balances
for _, path := range m.Path {
@@ -123,7 +123,7 @@ func main() {
fmt.Println("invalid merkle proof file", err)
return
}
var m MarkelProof
var m MerkleProof
if err := json.Unmarshal(b, &m); err != nil {
fmt.Println("invalid merkle proof file", err)
return

0 comments on commit 52c6cf4

Please sign in to comment.