From 3fc2bf545255d6598e42da9034661e4920bc22df Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Thu, 17 Oct 2019 12:30:24 +0300 Subject: [PATCH] *: fix some misspellings Goreport: neo-go/pkg/core/contract_state_test.go Line 21: warning: "Contracto" is a misspelling of "Contraction" (misspell) Line 64: warning: "Contracto" is a misspelling of "Contraction" (misspell) neo-go/pkg/core/interop_neo.go Line 420: warning: "succeedes" is a misspelling of "succeeds" (misspell) neo-go/pkg/network/discovery.go Line 118: warning: "succeded" is a misspelling of "succeeded" (misspell) Line 128: warning: "successfuly" is a misspelling of "successfully" (misspell) --- pkg/core/contract_state_test.go | 4 ++-- pkg/core/interop_neo.go | 2 +- pkg/network/discovery.go | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/core/contract_state_test.go b/pkg/core/contract_state_test.go index 1507ec566..9ab2e8233 100644 --- a/pkg/core/contract_state_test.go +++ b/pkg/core/contract_state_test.go @@ -18,7 +18,7 @@ func TestEncodeDecodeContractState(t *testing.T) { ParamList: []smartcontract.ParamType{smartcontract.StringType, smartcontract.IntegerType, smartcontract.Hash160Type}, ReturnType: smartcontract.BoolType, Properties: smartcontract.HasStorage, - Name: "Contracto", + Name: "Contrato", CodeVersion: "1.0.0", Author: "Joe Random", Email: "joe@example.com", @@ -61,7 +61,7 @@ func TestPutGetDeleteContractState(t *testing.T) { ParamList: []smartcontract.ParamType{smartcontract.StringType, smartcontract.IntegerType, smartcontract.Hash160Type}, ReturnType: smartcontract.BoolType, Properties: smartcontract.HasStorage, - Name: "Contracto", + Name: "Contrato", CodeVersion: "1.0.0", Author: "Joe Random", Email: "joe@example.com", diff --git a/pkg/core/interop_neo.go b/pkg/core/interop_neo.go index 19d9247cf..0dc9a1a75 100644 --- a/pkg/core/interop_neo.go +++ b/pkg/core/interop_neo.go @@ -417,7 +417,7 @@ func (ic *interopContext) storageFind(v *vm.VM) error { */ // createContractStateFromVM pops all contract state elements from the VM // evaluation stack, does a lot of checks and returns ContractState if it -// succeedes. +// succeeds. func (ic *interopContext) createContractStateFromVM(v *vm.VM) (*ContractState, error) { if ic.trigger != 0x10 { return nil, errors.New("can't create contract when not triggered by an application") diff --git a/pkg/network/discovery.go b/pkg/network/discovery.go index cbc6464a5..7d3415a6f 100644 --- a/pkg/network/discovery.go +++ b/pkg/network/discovery.go @@ -115,7 +115,7 @@ func (d *DefaultDiscovery) BadPeers() []string { } // GoodPeers returns all addresses of known good peers (that at least once -// succeded handshaking with us). +// succeeded handshaking with us). func (d *DefaultDiscovery) GoodPeers() []string { addrs := make([]string, 0, len(d.goodAddrs)) for addr := range d.goodAddrs { @@ -125,7 +125,7 @@ func (d *DefaultDiscovery) GoodPeers() []string { } // RegisterGoodAddr registers good known connected address that passed -// handshake successfuly. +// handshake successfully. func (d *DefaultDiscovery) RegisterGoodAddr(s string) { d.goodCh <- s }