Closed rosmcmahon closed 1 year ago
the one-liner version of async/await would be:
const result = await (await fetch('https://arweave.net/tx/EiRSQExb5HvSynpn0S7_dDnwcws1AJMxoYx4x7nWoho/status')).json()
console.log(JSON.stringify(result))
i think the double await
would also look confusing for some
i think mixing
then
andasync/await
style promise handling is not right. pick one.p.s. IMO if you pick
then
, you are wrong 😅