Fix build after rebase
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ export const constants = {
|
||||
HEX_SELECTOR_BYTE_OFFSET_IN_CALLDATA: 0,
|
||||
// Disable no-object-literal-type-assertion so we can enforce cast
|
||||
/* tslint:disable no-object-literal-type-assertion */
|
||||
DEFAULT_DECODING_RULES: { shouldConvertStructsToObjects: false } as DecodingRules,
|
||||
DEFAULT_DECODING_RULES: { shouldConvertStructsToObjects: true } as DecodingRules,
|
||||
DEFAULT_ENCODING_RULES: { shouldOptimize: true, shouldAnnotate: false } as EncodingRules,
|
||||
/* tslint:enable no-object-literal-type-assertion */
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user