update unit tests
This commit is contained in:
parent
16ac439546
commit
493d71cc13
@ -21,6 +21,8 @@ import (
|
|||||||
"math/big"
|
"math/big"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
|
"github.com/lib/pq"
|
||||||
|
|
||||||
"github.com/ipfs/go-cid"
|
"github.com/ipfs/go-cid"
|
||||||
blockstore "github.com/ipfs/go-ipfs-blockstore"
|
blockstore "github.com/ipfs/go-ipfs-blockstore"
|
||||||
dshelp "github.com/ipfs/go-ipfs-ds-help"
|
dshelp "github.com/ipfs/go-ipfs-ds-help"
|
||||||
@ -205,6 +207,14 @@ func TestPGXIndexer(t *testing.T) {
|
|||||||
if txRes.Value != transactions[3].Value().String() {
|
if txRes.Value != transactions[3].Value().String() {
|
||||||
t.Fatalf("expected tx value %s got %s", transactions[3].Value().String(), txRes.Value)
|
t.Fatalf("expected tx value %s got %s", transactions[3].Value().String(), txRes.Value)
|
||||||
}
|
}
|
||||||
|
// AccessListElementModel is the db model for eth.access_list_entry
|
||||||
|
type AccessListElementModel struct {
|
||||||
|
BlockNumber string `db:"block_number"`
|
||||||
|
Index int64 `db:"index"`
|
||||||
|
TxID string `db:"tx_id"`
|
||||||
|
Address string `db:"address"`
|
||||||
|
StorageKeys pq.StringArray `db:"storage_keys"`
|
||||||
|
}
|
||||||
accessListElementModels := make([]models.AccessListElementModel, 0)
|
accessListElementModels := make([]models.AccessListElementModel, 0)
|
||||||
pgStr = "SELECT cast(access_list_elements.block_number AS TEXT), access_list_elements.index, access_list_elements.tx_id, " +
|
pgStr = "SELECT cast(access_list_elements.block_number AS TEXT), access_list_elements.index, access_list_elements.tx_id, " +
|
||||||
"access_list_elements.address, access_list_elements.storage_keys FROM eth.access_list_elements " +
|
"access_list_elements.address, access_list_elements.storage_keys FROM eth.access_list_elements " +
|
||||||
|
Loading…
Reference in New Issue
Block a user