Fix Rich Error test bind context
This commit is contained in:
parent
62def596af
commit
469c10e45f
@ -40,7 +40,8 @@ blockchainTests.resets('LibExchangeRichErrorDecoder', ({ provider, txDefaults })
|
|||||||
// Solidity counterparts.
|
// Solidity counterparts.
|
||||||
const endpointName = `decode${revert.name}`;
|
const endpointName = `decode${revert.name}`;
|
||||||
const callAsync = (_encoded: string) => {
|
const callAsync = (_encoded: string) => {
|
||||||
return (decoder as any)[endpointName](_encoded).callAsync.call((decoder as any)[endpointName]);
|
const wrapperFunctions = (decoder as any)[endpointName](_encoded);
|
||||||
|
return wrapperFunctions.callAsync.bind(wrapperFunctions).call((decoder as any)[endpointName]);
|
||||||
};
|
};
|
||||||
describe(`${endpointName}()`, async () => {
|
describe(`${endpointName}()`, async () => {
|
||||||
it('decodes encoded parameters', async () => {
|
it('decodes encoded parameters', async () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user