Ran prettier
This commit is contained in:
parent
678762910b
commit
7eb2d290d8
@ -286,12 +286,16 @@ describe('ABI Encoder: Method Encoding / Decoding', () => {
|
|||||||
const method = AbiEncoder.createMethod('foobar');
|
const method = AbiEncoder.createMethod('foobar');
|
||||||
const methodSelector = method.getSelector();
|
const methodSelector = method.getSelector();
|
||||||
const badMethodSelector = '0x01020304';
|
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 () => {
|
it('Should throw if strict decoding calldata where selector does not match the method', async () => {
|
||||||
const method = AbiEncoder.createMethod('foobar');
|
const method = AbiEncoder.createMethod('foobar');
|
||||||
const methodSelector = method.getSelector();
|
const methodSelector = method.getSelector();
|
||||||
const badMethodSelector = '0x01020304';
|
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}'.`,
|
||||||
|
);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user