From 8bd9e967ba9a259b4ddbd03fd27e309bb068c112 Mon Sep 17 00:00:00 2001 From: i-norden Date: Tue, 21 Mar 2023 12:02:30 -0500 Subject: [PATCH] fix PGX direct database writing tests --- statediff/indexer/test/test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/statediff/indexer/test/test.go b/statediff/indexer/test/test.go index c9bc9a52c..3f583312b 100644 --- a/statediff/indexer/test/test.go +++ b/statediff/indexer/test/test.go @@ -343,8 +343,8 @@ func TestPublishAndIndexReceiptIPLDs(t *testing.T, db sql.Database) { func TestPublishAndIndexStateIPLDs(t *testing.T, db sql.Database) { // check that state nodes were properly indexed and published stateNodes := make([]models.StateNodeModel, 0) - pgStr := `SELECT state_cids.cid, state_cids.block_number, state_cids.state_leaf_key, state_cids.removed, - state_cids.header_id, state_cids.balance, state_cids.nonce, state_cids.code_hash, state_cids.storage_root + pgStr := `SELECT state_cids.cid, CAST(state_cids.block_number as TEXT), state_cids.state_leaf_key, state_cids.removed, + state_cids.header_id, CAST(state_cids.balance as TEXT), state_cids.nonce, state_cids.code_hash, state_cids.storage_root FROM eth.state_cids WHERE block_number = $1 AND removed = false`