mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 01:43:47 +00:00
Update abi.go
This commit is contained in:
parent
4cda8f06ea
commit
b211dc4f8b
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue