We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84c0ea1 commit 5cb991eCopy full SHA for 5cb991e
README.md
@@ -98,7 +98,7 @@ try {
98
const tx = await WETH.transfer('0x0', amount)
99
await tx.wait()
100
} catch (err) {
101
- const { reason } = errorDecoder.decode(err)
+ const { reason } = await errorDecoder.decode(err)
102
// Prints "ERC20: transfer to the zero address"
103
console.log('Revert reason:', reason)
104
}
@@ -116,7 +116,7 @@ try {
116
const tx = await OverflowContract.add(123)
117
118
119
120
// Prints "Arithmetic operation underflowed or overflowed outside of an unchecked block"
121
console.log('Panic message:', reason)
122
0 commit comments