diff --git a/integration/networktest/env/network_setup.go b/integration/networktest/env/network_setup.go index bd107052da..a1a0a89f5b 100644 --- a/integration/networktest/env/network_setup.go +++ b/integration/networktest/env/network_setup.go @@ -57,8 +57,8 @@ func DevTestnet(opts ...TestnetEnvOption) networktest.Environment { // LongRunningLocalNetwork is a local network, the l1WSURL is optional (can be empty string), only required if testing L1 interactions func LongRunningLocalNetwork(l1WSURL string) networktest.Environment { connector := newTestnetConnectorWithFaucetAccount( - "ws://127.0.0.1:26900", - []string{"ws://127.0.0.1:26901"}, + "ws://127.0.0.1:17900", + []string{"ws://127.0.0.1:17901"}, genesis.TestnetPrefundedPK, l1WSURL, "", diff --git a/integration/networktest/tests/helpful/spin_up_local_network_test.go b/integration/networktest/tests/helpful/spin_up_local_network_test.go index 5f671fb8b4..9e96230a50 100644 --- a/integration/networktest/tests/helpful/spin_up_local_network_test.go +++ b/integration/networktest/tests/helpful/spin_up_local_network_test.go @@ -29,6 +29,8 @@ const ( _sepoliaValidator1PK = "" // account 0x ) +// Spins up a local network with a gateway, with all processes debuggable. The network will run until the test is stopped. +// Note: If you want to access the gateway frontend you need to `npm run build` its frontend with NEXT_PUBLIC_API_GATEWAY_URL=http://localhost:11180 func TestRunLocalNetwork(t *testing.T) { networktest.TestOnlyRunsInIDE(t) networktest.EnsureTestLogsSetUp("local-geth-network") diff --git a/tools/tenscan/frontend/src/services/useTransactionsService.ts b/tools/tenscan/frontend/src/services/useTransactionsService.ts index 9418dd06de..5edbc3f345 100644 --- a/tools/tenscan/frontend/src/services/useTransactionsService.ts +++ b/tools/tenscan/frontend/src/services/useTransactionsService.ts @@ -61,11 +61,12 @@ export const useTransactionsService = () => { ...options, }, }; - const personalTxData = await provider.send(ethMethods.getStorageAt, [ + const personalTxResp = await provider.send(ethMethods.getStorageAt, [ tenCustomQueryMethods.listPersonalTransactions, JSON.stringify(requestPayload), null, ]); + const personalTxData = jsonHexToObj(personalTxResp); setPersonalTxns(personalTxData); } } catch (error) { @@ -96,3 +97,7 @@ export const useTransactionsService = () => { price, }; }; + +function jsonHexToObj(hex: string) { + return JSON.parse(Buffer.from(hex.slice(2), "hex").toString()); +} \ No newline at end of file