From 40be9ceacf2c5d33772b7d3e7ef0a51558d7d324 Mon Sep 17 00:00:00 2001 From: soonsouth <163404563+soonsouth@users.noreply.github.com> Date: Wed, 11 Dec 2024 20:17:33 +0800 Subject: [PATCH 1/2] chore: fix some function names in comment (#1560) Signed-off-by: soonsouth --- pkg/proto/eth_utils.go | 2 +- pkg/state/accounts_data_storage.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/proto/eth_utils.go b/pkg/proto/eth_utils.go index 07587f042..d75fd69c9 100644 --- a/pkg/proto/eth_utils.go +++ b/pkg/proto/eth_utils.go @@ -72,7 +72,7 @@ func copyBytes(bytes []byte) []byte { return copiedBytes } -// copyBytes returns an exact copy of the provided big.Int. +// copyBigInt returns an exact copy of the provided big.Int. func copyBigInt(v *big.Int) *big.Int { if v == nil { return nil diff --git a/pkg/state/accounts_data_storage.go b/pkg/state/accounts_data_storage.go index 5369d7f4e..c60e2539d 100644 --- a/pkg/state/accounts_data_storage.go +++ b/pkg/state/accounts_data_storage.go @@ -114,7 +114,7 @@ func (s *accountsDataStorage) setLastAddrNum(lastAddrNum uint64) error { return nil } -// newestAddressToNum returns the number of given address. It looks up for the address in cache map first +// newestAddrToNum returns the number of given address. It looks up for the address in cache map first // and if not present in state. The second result parameter is true if account's number was found cache otherwise false. // Error can be `keyvalue.ErrNotFound` if no corresponding number found for given address. func (s *accountsDataStorage) newestAddrToNum(addr proto.Address) (uint64, bool, error) { From e0443966eb0e0b7f884725e0144950a85b36a47f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 12 Dec 2024 12:30:50 +0400 Subject: [PATCH 2/2] Bump golang.org/x/crypto from 0.30.0 to 0.31.0 (#1561) Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.30.0 to 0.31.0. - [Commits](https://github.com/golang/crypto/compare/v0.30.0...v0.31.0) --- updated-dependencies: - dependency-name: golang.org/x/crypto dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 0d44c6e22..9ce8828db 100644 --- a/go.mod +++ b/go.mod @@ -43,7 +43,7 @@ require ( github.com/xenolf/lego v2.7.2+incompatible go.uber.org/atomic v1.11.0 go.uber.org/zap v1.27.0 - golang.org/x/crypto v0.30.0 + golang.org/x/crypto v0.31.0 golang.org/x/exp v0.0.0-20240904232852-e7e105dedf7e golang.org/x/sync v0.10.0 golang.org/x/sys v0.28.0 diff --git a/go.sum b/go.sum index b438122ad..798908ed4 100644 --- a/go.sum +++ b/go.sum @@ -342,8 +342,8 @@ golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACk golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.30.0 h1:RwoQn3GkWiMkzlX562cLB7OxWvjH1L8xutO2WoJcRoY= -golang.org/x/crypto v0.30.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= +golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U= +golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= golang.org/x/exp v0.0.0-20240904232852-e7e105dedf7e h1:I88y4caeGeuDQxgdoFPUq097j7kNfw6uvuiNxUBfcBk= golang.org/x/exp v0.0.0-20240904232852-e7e105dedf7e/go.mod h1:akd2r19cwCdwSwWeIdzYQGa/EZZyqcOdwWiwj5L5eKQ= golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=