Skip to content

Commit

Permalink
fixes: minor to docs and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kamikazechaser committed May 21, 2024
1 parent 1a3ab79 commit add9c91
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.22
go-version: 1.22.3
- uses: actions/checkout@v2
- name: go test
run: go test -v -race -covermode atomic -coverprofile=covprofile .
run: go test -v -covermode atomic -coverprofile=covprofile .
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# ethutils

[![Go test](https://github.com/grassrootseconomics/ethutils/actions/workflows/test.yaml/badge.svg)](https://github.com/grassrootseconomics/ethutils/actions/workflows/test.yaml)
![GitHub Tag](https://img.shields.io/github/v/tag/grassrootseconomics/ethutils)
[![Go Reference](https://pkg.go.dev/badge/github.com/grassrootseconomics/ethutils.svg)](https://pkg.go.dev/github.com/grassrootseconomics/ethutils)


Expand All @@ -12,7 +13,7 @@ Features:
* Gas transfers
* Smart contract interactions
* Address conversion/parsing utilities
* Grassroots Ecomonics [address](https://software.grassecon.org/addresses) loaders
* Grassroots Economics [address](https://software.grassecon.org/addresses) loaders
* Dump reverted tx reason
* Batch balances scanner

Expand Down
2 changes: 1 addition & 1 deletion balances_scanner_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

func TestProvider_TokensBalance(t *testing.T) {
p := NewProvider("https://api.tatum.io/v3/blockchain/node/celo-mainnet", CeloMainnet)
p := NewProvider("https://forno.celo.org", CeloMainnet)

tokens := []common.Address{
w3.A("0x02cc0715E844a45bA56Ad391D92DCd6537315177"),
Expand Down
4 changes: 2 additions & 2 deletions grassroots_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
)

func TestGrassroots_RegistryMap(t *testing.T) {
p := NewProvider("https://api.tatum.io/v3/blockchain/node/celo-mainnet", CeloMainnet)
p := NewProvider("https://forno.celo.org", CeloMainnet)

rMap, err := p.RegistryMap(context.Background(), SarafuNetworkRegistry)
if err != nil {
Expand All @@ -16,7 +16,7 @@ func TestGrassroots_RegistryMap(t *testing.T) {
}

func TestGrassroots_GetGESmartContracts(t *testing.T) {
p := NewProvider("https://api.tatum.io/v3/blockchain/node/celo-mainnet", CeloMainnet)
p := NewProvider("https://forno.celo.org", CeloMainnet)

aMap, err := p.GetGESmartContracts(context.Background(), []string{
SarafuNetworkRegistry.Hex(),
Expand Down
2 changes: 1 addition & 1 deletion provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
)

func TestNewProvider_NoPanic(t *testing.T) {
NewProvider("https://api.tatum.io/v3/blockchain/node/celo-mainnet", CeloMainnet)
NewProvider("https://forno.celo.org", CeloMainnet)
}

func TestNewProvider_Panic(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion simulate_test_e2e.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

func TestProvider_SimulateRevertedTx(t *testing.T) {
p := NewProvider("https://api.tatum.io/v3/blockchain/node/celo-mainnet", CeloMainnet)
p := NewProvider("https://forno.celo.org", CeloMainnet)

type args struct {
txHash common.Hash
Expand Down Expand Up @@ -42,6 +42,7 @@ func TestProvider_SimulateRevertedTx(t *testing.T) {
if got != tt.want {
t.Errorf("Provider.SimulateRevertedTx() = %v, want %v", got, tt.want)
}
t.Log(got)
})
}
}

0 comments on commit add9c91

Please sign in to comment.