Fix build after rebase

This commit is contained in:
Greg Hysen
2019-01-09 17:12:26 -08:00
parent 82a44559f6
commit 3a28eb1c6a
2 changed files with 2 additions and 2 deletions

View File

@@ -88,7 +88,7 @@ export class BaseContract {
if (rawCallResult.slice(REVERT_ERROR_SELECTOR_OFFSET, REVERT_ERROR_SELECTOR_END) === REVERT_ERROR_SELECTOR) {
const revertReason = AbiEncoder.create('(string)').decodeAsArray(
ethers.utils.hexDataSlice(rawCallResult, REVERT_ERROR_SELECTOR_BYTES_LENGTH),
);
)[0];
throw new Error(revertReason);
}
}