Skip to content

Commit fcba22d

Browse files
committed
error handling
1 parent be4f8ee commit fcba22d

File tree

1 file changed

+3
-1
lines changed
  • tooling/sparta/packages/discord/src/slashCommands/operators

1 file changed

+3
-1
lines changed

tooling/sparta/packages/discord/src/slashCommands/operators/chain-info.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ export const get = async (
66
interaction: ChatInputCommandInteraction
77
): Promise<string> => {
88
try {
9+
await interaction.deferReply();
10+
911
// Get Ethereum instance
1012
const ethereum = await getEthereumInstance();
1113

@@ -18,7 +20,7 @@ export const get = async (
1820
proposerNow,
1921
} = await ethereum.getRollupInfo();
2022

21-
await interaction.reply({
23+
await interaction.editReply({
2224
content: `
2325
Pending block: [${pendingBlockNum}](https://aztecscan.xyz/blocks/${pendingBlockNum})
2426
Proven block: [${provenBlockNum}](https://aztecscan.xyz/blocks/${provenBlockNum})

0 commit comments

Comments
 (0)