Skip to content

Commit

Permalink
fix: update docs (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
superical authored Jan 24, 2024
1 parent 84c0ea1 commit 5cb991e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ try {
const tx = await WETH.transfer('0x0', amount)
await tx.wait()
} catch (err) {
const { reason } = errorDecoder.decode(err)
const { reason } = await errorDecoder.decode(err)
// Prints "ERC20: transfer to the zero address"
console.log('Revert reason:', reason)
}
Expand All @@ -116,7 +116,7 @@ try {
const tx = await OverflowContract.add(123)
await tx.wait()
} catch (err) {
const { reason } = errorDecoder.decode(err)
const { reason } = await errorDecoder.decode(err)
// Prints "Arithmetic operation underflowed or overflowed outside of an unchecked block"
console.log('Panic message:', reason)
}
Expand Down

0 comments on commit 5cb991e

Please sign in to comment.