Skip to content

Commit

Permalink
Fix typos in cmd/ctool/core/contractcmd.go
Browse files Browse the repository at this point in the history
  • Loading branch information
BorisNaum committed Feb 20, 2025
1 parent 752c257 commit 7588e50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/ctool/core/contractcmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func DeployContract(abiFilePath string, codeFilePath string) error {

resp := parseResponse(r)

fmt.Printf("\ntrasaction hash: %s\n", resp.Result)
fmt.Printf("\ntransaction hash: %s\n", resp.Result)

// Get transaction receipt according to result
ch := make(chan string, 1)
Expand Down Expand Up @@ -238,7 +238,7 @@ func InvokeContract(contractAddr string, abiPath string, funcParams string, txTy
}
fmt.Printf("\n result: []\n")
} else {
fmt.Printf("\n trasaction hash: %s\n", resp.Result)
fmt.Printf("\n transaction hash: %s\n", resp.Result)
}
return nil
}
Expand Down Expand Up @@ -266,7 +266,7 @@ func getContractByAddress(addr string) bool {
fmt.Printf("platon_getCode error ,error:%v", resp.Error.Message)
return false
}
//fmt.Printf("trasaction hash: %s\n", resp.Result)
//fmt.Printf("transaction hash: %s\n", resp.Result)

if resp.Result != "" && len(resp.Result) > 2 {
return true
Expand Down

0 comments on commit 7588e50

Please sign in to comment.