From a598e71d9dc36c4b8cf506eff76b81c3fa7f36ee Mon Sep 17 00:00:00 2001 From: KoT_B_KocMoce <49576827+hodlonaut@users.noreply.github.com> Date: Fri, 13 Dec 2024 08:11:57 +1100 Subject: [PATCH] Update account_history.sql Added missing varchar cast --- files/grest/rpc/account/account_history.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/grest/rpc/account/account_history.sql b/files/grest/rpc/account/account_history.sql index 849e4daa..9dd9f0e4 100644 --- a/files/grest/rpc/account/account_history.sql +++ b/files/grest/rpc/account/account_history.sql @@ -42,7 +42,7 @@ BEGIN ELSE RETURN QUERY SELECT - grest.cip5_hex_to_stake_addr(sa.hash_raw) AS stake_address, + grest.cip5_hex_to_stake_addr(sa.hash_raw)::varchar AS stake_address, JSONB_AGG( JSONB_BUILD_OBJECT( 'pool_id', b32_encode('pool', ph.hash_raw::text),