Skip to content

Commit

Permalink
Show a message when TX has no extra details
Browse files Browse the repository at this point in the history
  • Loading branch information
Radiokot committed Mar 13, 2024
1 parent 6e8ae0e commit 2a4bd0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1101,10 +1101,12 @@ private constructor(
)
)
} else {
Log.w("Nothing to show as details for ${accountTransactionPayload::class.simpleName}")

mutableEventsFlow.emit(
Event.ShowCallDetailsDialog(
method = reviewState.method,
prettyPrintDetails = "",
prettyPrintDetails = context.getString(R.string.wallet_connect_transaction_request_no_details),
)
)
}
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,7 @@
<string name="wallet_connect_error_transaction_request_stringify_params_failed">Failed to stringify the parameters</string>
<string name="wallet_connect_template_transaction_request_details">Max energy allowed:\n%1$s\n\nParameters:\n%2$s</string>
<string name="wallet_connect_transaction_request_no_parameters">The call has no parameters</string>
<string name="wallet_connect_transaction_request_no_details">There are no extra details</string>
<string name="wallet_connect_transaction_request_insufficient_funds">Insufficient funds to sign the transaction</string>
<string name="wallet_connect_transaction_submitted_finish">@string/finish</string>
<string name="wallet_connect_transaction_submitted_total_amount">@string/total_amount</string>
Expand Down

0 comments on commit 2a4bd0c

Please sign in to comment.