Lawrence Forman
43810835d7
@0x/utils
: Fix broken test
2020-09-01 18:52:32 -04:00
Michael Zhu
89117beda2
@0x/utils
: Add support for nested rich revert decoding
2020-08-18 13:13:10 -07:00
Jacob Evans
42dc112a13
RevertError: Decode Parity revert errors
2019-11-15 19:39:06 +10:00
Lawrence Forman
b07fc95c81
@0x/utils
: Add docstring for raw
constructor parameter in RevertError
.
...
`@0x/utils`: Use `...is.instanceof()` pattern in `RevertError` tests.
2019-09-04 20:18:55 -04:00
Lawrence Forman
f724212fd7
@0x/utils
: Prettier.
2019-09-04 20:18:55 -04:00
Lawrence Forman
0542c70d22
@0x/utils
: Make decoding of unknown selectors to RawRevertError
optional.
2019-09-04 20:16:44 -04:00
Lawrence Forman
2cf74a7a96
@0x/utils
: Make RevertError.decode()
return a RawRevertError
if the selector is unknown.
2019-09-04 20:15:16 -04:00
Lawrence Forman
fb38867e78
Ran prettier
2019-08-21 10:59:34 -04:00
Lawrence Forman
a3f6160898
@0x/utils
: Allow for array types in RevertError
types.
2019-08-21 10:59:34 -04:00
Lawrence Forman
eaa4373a18
@0x/utils
: Tweak RevertError
to produce a meaningful Error
message/stack trace.
...
`@0x/utils`: Add more `RevertError` decoding/transforming functions (such as `decodeThrownErrorAsRevertError()`)
2019-07-23 15:27:39 -07:00
Lawrence Forman
633c5d5938
In @0x/utils
add encode()
method to RevertError
2019-07-23 15:17:56 -07:00
Lawrence Forman
703a0fde3c
In @0x/utils
: Add AnyRevertError
type that matches with any revert error
2019-07-23 15:17:28 -07:00
Lawrence Forman
6231724f49
Rename RichRevertReason
to RevertError
.
...
Rename `StandardError` to `StringRevertError`.
Rename `RichRevertAbi` to `RevertErrorAbi`.
Make `RevertError` extend `Error` so it can be thrown.
Add `RevertError` tests.
2019-07-23 15:15:17 -07:00