Update abi.go

This commit is contained in:
strepCode77 2025-02-09 12:09:04 +01:00 committed by GitHub
parent 4cda8f06ea
commit b211dc4f8b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -272,7 +272,7 @@ var panicReasons = map[uint64]string{
} }
// UnpackRevert resolves the abi-encoded revert reason. According to the solidity // UnpackRevert resolves the abi-encoded revert reason. According to the solidity
// spec https://solidity.readthedocs.io/en/latest/control-structures.html#revert, // spec https://docs.soliditylang.org/en/latest/control-structures.html#revert,
// the provided revert reason is abi-encoded as if it were a call to function // the provided revert reason is abi-encoded as if it were a call to function
// `Error(string)` or `Panic(uint256)`. So it's a special tool for it. // `Error(string)` or `Panic(uint256)`. So it's a special tool for it.
func UnpackRevert(data []byte) (string, error) { func UnpackRevert(data []byte) (string, error) {