From dcfdd14d02cdd6425115c25aea701ea9acc630d5 Mon Sep 17 00:00:00 2001 From: EjembiEmmanuel Date: Fri, 22 Nov 2024 08:27:52 +0100 Subject: [PATCH] refac: format burner wallet address --- frontend/src/app/burner/page.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/burner/page.tsx b/frontend/src/app/burner/page.tsx index 4c762e4..47f0386 100644 --- a/frontend/src/app/burner/page.tsx +++ b/frontend/src/app/burner/page.tsx @@ -58,10 +58,14 @@ export default function Page() { TransactionHash.transaction_hash, ); + const address: string = result.events?.at(0).from_address; + const formattedAddress = + "0x" + address.replace(/^0x/, "").padStart(64, "0"); + return { privateKey, publicKey, - address: result.events?.at(0).from_address, + address: formattedAddress, }; };