Skip to content

Commit

Permalink
fix: fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
yutianwu committed May 5, 2023
1 parent 682d3d5 commit c434c4f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/vm/contracts.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ func init() {
PrecompiledAddressesLuban = append(PrecompiledAddressesLuban, k)
}
for k := range PrecompiledContractsPlato {
PrecompiledAddressesLuban = append(PrecompiledAddressesLuban, k)
PrecompiledAddressesPlato = append(PrecompiledAddressesPlato, k)
}
}

Expand Down
6 changes: 6 additions & 0 deletions core/vm/contracts_lightclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,12 @@ func (c *iavlMerkleProofValidatePlato) RequiredGas(_ []byte) uint64 {

func (c *iavlMerkleProofValidatePlato) Run(input []byte) (result []byte, err error) {
c.basicIavlMerkleProofValidate.proofRuntime = v1.Ics23ProofRuntime()
c.basicIavlMerkleProofValidate.verifiers = []merkle.ProofOpVerifier{
forbiddenAbsenceOpVerifier,
singleValueOpVerifier,
multiStoreOpVerifier,
forbiddenSimpleValueOpVerifier,
}
c.basicIavlMerkleProofValidate.keyVerifier = keyVerifier
c.basicIavlMerkleProofValidate.opsVerifier = proofOpsVerifier
return c.basicIavlMerkleProofValidate.Run(input)
Expand Down

0 comments on commit c434c4f

Please sign in to comment.