We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d320872 commit 8790fc5Copy full SHA for 8790fc5
explorer/src/app/api/log/[...params]/route.ts
@@ -4,19 +4,21 @@ import { sendSlackMessage } from 'utils/slack'
4
export const POST = async (req: NextRequest) => {
5
try {
6
const logData = await req.json()
7
- const slackMessage = await sendSlackMessage('Astral Error', [
+ const pathname = req.nextUrl.pathname.replace('/api/log/', '')
8
+ const type = pathname.split('/')[0]
9
+ const slackMessage = await sendSlackMessage('Astral ' + type, [
10
{
11
type: 'header',
12
text: {
13
type: 'plain_text',
- text: 'Astral Error',
14
+ text: 'Astral ' + type,
15
},
16
17
18
type: 'section',
19
20
type: 'mrkdwn',
- text: `Path: ${req.nextUrl.pathname.replace('/api/log/', '')}`,
21
+ text: `Path: ${pathname}`,
22
23
24
explorer/src/components/Transfer/index.tsx
@@ -79,6 +79,8 @@ export const Transfer: FC = () => {
79
position: 'bottom-center',
80
})
81
log('transfer', 'handleSubmit', 'injector', injector)
82
+ log('transfer', 'handleSubmit', 'injector.signer', injector.signer)
83
+ log('transfer', 'handleSubmit', 'injector.accounts', injector.accounts)
84
log('transfer', 'handleSubmit', 'api', api)
85
86
const to = values.receiver || subspaceAccount
@@ -111,13 +113,15 @@ export const Transfer: FC = () => {
111
113
}
112
114
115
const tx = await transfer(api, to, amount)
116
+ log('transfer', 'handleSubmit', 'tx', tx)
117
const hash = await sendAndSaveTx({
118
call: 'balances.transferKeepAlive',
119
tx,
120
signer: injector.signer,
121
to,
122
amount,
123
124
+ log('transfer', 'handleSubmit', 'hash', hash)
125
if (hash) {
126
setHash(hash)
127
toast.success('The transaction was sent successfully', { position: 'bottom-center' })
0 commit comments