Skip to content

Commit 9bb3e6a

Browse files
committed
2 parents 69bf604 + b4a92df commit 9bb3e6a

File tree

8 files changed

+451
-87
lines changed

8 files changed

+451
-87
lines changed

.github/workflows/go.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ jobs:
4343
defaults:
4444
run:
4545
working-directory: ./libevm/tooling
46+
env:
47+
TARGET_BRANCH: ${{ github.event_name == 'pull_request' && github.base_ref || github.ref }}
4648
steps:
4749
- uses: actions/checkout@v4
4850
with:
@@ -51,7 +53,8 @@ jobs:
5153
uses: actions/setup-go@v5
5254
with:
5355
go-version-file: "./libevm/tooling/go.mod"
54-
- run: go test ./...
56+
- run: git branch main origin/main
57+
- run: go test -v ./... --target_branch="${{ env.TARGET_BRANCH }}"
5558

5659
go_generate:
5760
env:

eth/gasprice/feehistory.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ func (oracle *Oracle) FeeHistory(ctx context.Context, blocks uint64, unresolvedL
221221
maxFeeHistory = oracle.maxBlockHistory
222222
}
223223
if len(rewardPercentiles) > maxQueryLimit {
224-
return common.Big0, nil, nil, nil, nil, nil, fmt.Errorf("%w: over the query limit %d", errInvalidPercentile, maxQueryLimit)
224+
return common.Big0, nil, nil, nil, fmt.Errorf("%w: over the query limit %d", errInvalidPercentile, maxQueryLimit)
225225
}
226226
if blocks > maxFeeHistory {
227227
log.Warn("Sanitizing fee history length", "requested", blocks, "truncated", maxFeeHistory)

go.mod

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ module github.com/ava-labs/libevm
22

33
go 1.23
44

5+
retract (
6+
// Bad semver formats resulting in incorrect precedence
7+
v1.13.14-0.1.0-rc.1
8+
v1.13.14-0.1.0.rc-2
9+
)
10+
511
require (
612
github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.2.0
713
github.com/Microsoft/go-winio v0.6.1

libevm/tooling/go.mod

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,40 @@
11
module github.com/ava-labs/libevm/libevm/tooling
22

3-
go 1.23
3+
go 1.23.0
4+
5+
replace github.com/ava-labs/libevm => ../../
46

57
require (
6-
github.com/go-git/go-git/v5 v5.13.2
7-
github.com/google/go-cmp v0.6.0
8+
github.com/ava-labs/libevm v0.0.0-00010101000000-000000000000
9+
github.com/go-git/go-git/v5 v5.14.0
10+
github.com/google/go-cmp v0.7.0
811
github.com/stretchr/testify v1.10.0
912
)
1013

1114
require (
1215
dario.cat/mergo v1.0.0 // indirect
13-
github.com/Microsoft/go-winio v0.6.1 // indirect
16+
github.com/Microsoft/go-winio v0.6.2 // indirect
1417
github.com/ProtonMail/go-crypto v1.1.5 // indirect
15-
github.com/cloudflare/circl v1.3.7 // indirect
16-
github.com/cyphar/filepath-securejoin v0.3.6 // indirect
18+
github.com/cloudflare/circl v1.6.0 // indirect
19+
github.com/cyphar/filepath-securejoin v0.4.1 // indirect
1720
github.com/davecgh/go-spew v1.1.1 // indirect
1821
github.com/emirpasic/gods v1.18.1 // indirect
1922
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect
2023
github.com/go-git/go-billy/v5 v5.6.2 // indirect
21-
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
24+
github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 // indirect
25+
github.com/holiman/uint256 v1.2.4 // indirect
2226
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
2327
github.com/kevinburke/ssh_config v1.2.0 // indirect
2428
github.com/pjbgf/sha1cd v0.3.2 // indirect
2529
github.com/pmezard/go-difflib v1.0.0 // indirect
2630
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 // indirect
27-
github.com/skeema/knownhosts v1.3.0 // indirect
31+
github.com/skeema/knownhosts v1.3.1 // indirect
2832
github.com/xanzy/ssh-agent v0.3.3 // indirect
29-
golang.org/x/crypto v0.32.0 // indirect
30-
golang.org/x/mod v0.17.0 // indirect
31-
golang.org/x/net v0.34.0 // indirect
33+
golang.org/x/crypto v0.35.0 // indirect
34+
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect
35+
golang.org/x/net v0.35.0 // indirect
3236
golang.org/x/sync v0.10.0 // indirect
33-
golang.org/x/sys v0.29.0 // indirect
34-
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d // indirect
37+
golang.org/x/sys v0.30.0 // indirect
3538
gopkg.in/warnings.v0 v0.1.2 // indirect
3639
gopkg.in/yaml.v3 v3.0.1 // indirect
3740
)

libevm/tooling/go.sum

Lines changed: 122 additions & 32 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)