Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export function Chats(props: {
client={props.client}
onTxSettled={(txHash) => {
props.sendMessage(
`I've sent the transaction with hash: ${txHash}.`,
getTransactionSettledPrompt(txHash),
);
}}
/>
Expand Down Expand Up @@ -209,6 +209,13 @@ export function Chats(props: {
);
}

function getTransactionSettledPrompt(txHash: string) {
return `\
I've executed the following transaction successfully with hash: ${txHash}.
If our conversation calls for it, continue on to the next transaction or suggest next steps`;
}

function ExecuteTransactionCardWithFallback(props: {
txData: NebulaTxData | null;
client: ThirdwebClient;
Expand Down
Loading