Skip to content

Commit

Permalink
Merge pull request #1 from everFinance/feature/fix-returen
Browse files Browse the repository at this point in the history
feat: fix Ecrecover params
  • Loading branch information
wujunze authored Aug 9, 2023
2 parents 9150086 + 32fc5ac commit 15a96a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion account/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func (a *Account) VerifySig(tx Transaction) (err error) {
case AccountTypeEVM:
sig := DecodeEthSig(tx.Sig)

addr, err := goether.Ecrecover(tx.Hash, sig)
_, addr, err := goether.Ecrecover(tx.Hash, sig)
if err != nil {
return fmt.Errorf("ecrecover failed, hash:%s, sig:%s, err:%v", hexutil.Encode(tx.Hash), tx.Sig, err)
}
Expand Down
5 changes: 3 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ go 1.17
require (
github.com/ethereum/go-ethereum v1.10.20
github.com/everFinance/ethrpc v1.0.4
github.com/everFinance/goar v1.4.6
github.com/everFinance/goether v1.1.8
github.com/everFinance/goar v1.5.7
github.com/everFinance/goether v1.1.9
github.com/getsentry/sentry-go v0.11.0
github.com/google/uuid v1.3.0
github.com/inconshreveable/log15 v0.0.0-20201112154412-8562bdadbbac
Expand Down Expand Up @@ -35,6 +35,7 @@ require (
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.1 // indirect
github.com/nbio/st v0.0.0-20140626010706-e9e8d9816f32 // indirect
github.com/panjf2000/ants/v2 v2.6.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/tidwall/match v1.1.1 // indirect
github.com/tidwall/pretty v1.2.0 // indirect
Expand Down

0 comments on commit 15a96a7

Please # to comment.