我想使用 web3.js 向用户显示恢复原因,例如,在用户尝试铸造已经铸造的 erc721 令牌的情况下。我正在使用 try catch 块并查看错误消息,但我想隔离错误消息以向用户显示有意义的原因。提前致谢。
ethereum web3js decentralized-applications
decentralized-applications ×1
ethereum ×1
web3js ×1