Ran prettier

This commit is contained in:
Greg Hysen 2019-08-01 20:25:19 +02:00
parent 678762910b
commit 7eb2d290d8

View File

@ -286,12 +286,16 @@ describe('ABI Encoder: Method Encoding / Decoding', () => {
const method = AbiEncoder.createMethod('foobar');
const methodSelector = method.getSelector();
const badMethodSelector = '0x01020304';
expect(() => method.decode(badMethodSelector)).to.throw(`Tried to decode calldata, but it was missing the function selector. Expected prefix '${methodSelector}'. Got '${badMethodSelector}'.`);
expect(() => method.decode(badMethodSelector)).to.throw(
`Tried to decode calldata, but it was missing the function selector. Expected prefix '${methodSelector}'. Got '${badMethodSelector}'.`,
);
});
it('Should throw if strict decoding calldata where selector does not match the method', async () => {
const method = AbiEncoder.createMethod('foobar');
const methodSelector = method.getSelector();
const badMethodSelector = '0x01020304';
expect(() => method.strictDecode<void>(badMethodSelector)).to.throw(`Tried to decode calldata, but it was missing the function selector. Expected prefix '${methodSelector}'. Got '${badMethodSelector}'.`);
expect(() => method.strictDecode<void>(badMethodSelector)).to.throw(
`Tried to decode calldata, but it was missing the function selector. Expected prefix '${methodSelector}'. Got '${badMethodSelector}'.`,
);
});
});