diff --git a/pkg/compiler/compiler.go b/pkg/compiler/compiler.go index 7e47f844d..ec5886728 100644 --- a/pkg/compiler/compiler.go +++ b/pkg/compiler/compiler.go @@ -448,7 +448,7 @@ func CompileAndSave(src string, o *Options) ([]byte, error) { return f.Script, nil } -// CreateManifest creates manifest and checks that is is valid. +// CreateManifest creates manifest and checks that is valid. func CreateManifest(di *DebugInfo, o *Options) (*manifest.Manifest, error) { m, err := di.ConvertToManifest(o) if err != nil { diff --git a/pkg/core/blockchain.go b/pkg/core/blockchain.go index fcfc1eec0..1d24d22fa 100644 --- a/pkg/core/blockchain.go +++ b/pkg/core/blockchain.go @@ -76,7 +76,7 @@ const ( // newStorageItemsAdded means that contract storage items are up-to-date with the current // state. newStorageItemsAdded - // staleBlocksRemoved means that state corresponding to the stale blocks (genesis block in + // staleBlocksRemoved means that state corresponding to the stale blocks (genesis block // in case of state jump) was removed from the storage. staleBlocksRemoved // headersReset denotes stale SYS-prefixed and IX-prefixed information was removed from diff --git a/pkg/core/mempool/mem_pool.go b/pkg/core/mempool/mem_pool.go index b9fdbbf3c..1eb832911 100644 --- a/pkg/core/mempool/mem_pool.go +++ b/pkg/core/mempool/mem_pool.go @@ -37,7 +37,7 @@ var ( ErrOracleResponse = errors.New("conflicts with memory pool due to OracleResponse attribute") ) -// item represents a transaction in the the Memory pool. +// item represents a transaction in the Memory pool. type item struct { txn *transaction.Transaction blockStamp uint32 diff --git a/pkg/rpcclient/nep11/divisible.go b/pkg/rpcclient/nep11/divisible.go index 59600048a..ea16a0543 100644 --- a/pkg/rpcclient/nep11/divisible.go +++ b/pkg/rpcclient/nep11/divisible.go @@ -48,7 +48,7 @@ func NewDivisible(actor Actor, hash util.Uint160) *Divisible { return &Divisible{*NewDivisibleReader(actor, hash), DivisibleWriter{BaseWriter{hash, actor}}} } -// OwnerOf returns returns an iterator that allows to walk through all owners of +// OwnerOf returns an iterator that allows to walk through all owners of // the given token. It depends on the server to provide proper session-based // iterator, but can also work with expanded one. func (t *DivisibleReader) OwnerOf(token []byte) (*OwnerIterator, error) { diff --git a/pkg/services/rpcsrv/params/types.go b/pkg/services/rpcsrv/params/types.go index 2ce86d876..c2283c1bb 100644 --- a/pkg/services/rpcsrv/params/types.go +++ b/pkg/services/rpcsrv/params/types.go @@ -84,8 +84,7 @@ func (r *Request) UnmarshalJSON(data []byte) error { return nil } -// DecodeData decodes the given reader into the the request -// struct. +// DecodeData decodes the given reader into the request struct. func (r *Request) DecodeData(data io.ReadCloser) error { defer data.Close() diff --git a/pkg/vm/stackitem/item.go b/pkg/vm/stackitem/item.go index 0b793d291..4c480a40e 100644 --- a/pkg/vm/stackitem/item.go +++ b/pkg/vm/stackitem/item.go @@ -1124,7 +1124,7 @@ func (p *Pointer) Position() int { return p.pos } -// Buffer represents represents a Buffer stack item. +// Buffer represents a Buffer stack item. type Buffer []byte // NewBuffer returns a new Buffer object.