Skip to content

Commit fe53404

Browse files
committed
sdk: await under try/catch to trigger exception
1 parent a205230 commit fe53404

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

solana/ts/sdk/ntt.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -283,9 +283,8 @@ export class SolanaNtt<N extends Network, C extends SolanaChains>
283283
contracts: Contracts & { ntt: Ntt.Contracts },
284284
sender?: AccountAddress<SolanaChains>
285285
): Promise<IdlVersion> {
286-
// TODO: what? the try catch doesn't seem to work. it's not catching the error
287286
try {
288-
return NTT.getVersion(
287+
return await NTT.getVersion(
289288
connection,
290289
new PublicKey(contracts.ntt.manager!),
291290
sender ? new SolanaAddress(sender).unwrap() : undefined

0 commit comments

Comments
 (0)