From 7ec2e6aa3af045831023adbbf81d86f52530c9d4 Mon Sep 17 00:00:00 2001 From: IamLRBA Date: Thu, 7 Nov 2024 18:00:33 -0500 Subject: [PATCH] Implemented an interpretation stub for failed transactions --- .idea/.gitignore | 3 +++ .idea/frontend.iml | 9 +++++++++ .idea/misc.xml | 6 ++++++ .idea/modules.xml | 8 ++++++++ .idea/vcs.xml | 6 ++++++ ui/pages/Transaction.tsx | 19 ++++++++++++++++++- 6 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/frontend.iml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000000..26d33521af --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/frontend.iml b/.idea/frontend.iml new file mode 100644 index 0000000000..d6ebd48059 --- /dev/null +++ b/.idea/frontend.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000000..31e1ebce6f --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000000..f3d93d75a8 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000000..35eb1ddfbb --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/ui/pages/Transaction.tsx b/ui/pages/Transaction.tsx index b9086c2fa9..43b3540dc8 100644 --- a/ui/pages/Transaction.tsx +++ b/ui/pages/Transaction.tsx @@ -113,7 +113,24 @@ const TransactionPageContent = () => { if (isCustomAppError(error)) { throwOnResourceLoadError({ resource: 'tx', error, isError: true }); } - } + } else { + // Display a specific failure message for failed transactions + return ( +
+ + +

+ Address failed to call method on address. +

+
+ ); + } + } return ( <>