diff --git a/internal/testchain/transaction.go b/internal/testchain/transaction.go index b0dcb003d..302cbb694 100644 --- a/internal/testchain/transaction.go +++ b/internal/testchain/transaction.go @@ -24,7 +24,7 @@ var ( ownerScript = MultisigVerificationScript() ) -// NewTransferFromOwner returns transaction transfering funds from NEO and GAS owner. +// NewTransferFromOwner returns transaction transferring funds from NEO and GAS owner. func NewTransferFromOwner(bc blockchainer.Blockchainer, contractHash, to util.Uint160, amount int64, nonce, validUntil uint32) (*transaction.Transaction, error) { w := io.NewBufBinWriter() diff --git a/pkg/compiler/codegen.go b/pkg/compiler/codegen.go index 5be47dc70..f10e5e440 100644 --- a/pkg/compiler/codegen.go +++ b/pkg/compiler/codegen.go @@ -1206,10 +1206,10 @@ func (c *codegen) Visit(node ast.Node) ast.Visitor { // processDefers emits code for `defer` statements. // TRY-related opcodes handle exception as follows: -// 1. CATCH block is executed only if exception has occured. +// 1. CATCH block is executed only if exception has occurred. // 2. FINALLY block is always executed, but after catch block. // Go `defer` statements are a bit different: -// 1. `defer` is always executed irregardless of whether an exception has occured. +// 1. `defer` is always executed irregardless of whether an exception has occurred. // 2. `recover` can or can not handle a possible exception. // Thus we use the following approach: // 1. Throwed exception is saved in a static field X, static fields Y and is set to true. diff --git a/pkg/compiler/debug.go b/pkg/compiler/debug.go index 49812c1b8..c21a6b140 100644 --- a/pkg/compiler/debug.go +++ b/pkg/compiler/debug.go @@ -22,7 +22,7 @@ type DebugInfo struct { Documents []string `json:"documents"` Methods []MethodDebugInfo `json:"methods"` Events []EventDebugInfo `json:"events"` - // EmittedEvents contains events occuring in code. + // EmittedEvents contains events occurring in code. EmittedEvents map[string][][]string `json:"-"` } diff --git a/pkg/rpc/server/server.go b/pkg/rpc/server/server.go index 1c6565b95..3b211f539 100644 --- a/pkg/rpc/server/server.go +++ b/pkg/rpc/server/server.go @@ -1174,7 +1174,7 @@ func (s *Server) invokeContractVerify(reqParams request.Params) (interface{}, *r // runScriptInVM runs given script in a new test VM and returns the invocation // result. func (s *Server) runScriptInVM(t trigger.Type, script []byte, tx *transaction.Transaction) (*result.Invoke, *response.Error) { - // When transfering funds, script execution does no auto GAS claim, + // When transferring funds, script execution does no auto GAS claim, // because it depends on persisting tx height. // This is why we provide block here. b := block.New(s.network, s.stateRootEnabled)