chore: fix comment and any type

This commit is contained in:
Matthew Russell
2022-07-22 11:23:58 +01:00
parent ed310c2894
commit d8e048c5e1
2 changed files with 3 additions and 2 deletions
@@ -35,7 +35,7 @@ class MockContract {
resolve({
from: 'foo',
confirmations,
} as any);
} as ethers.ContractReceipt);
}, 100);
});
},
@@ -51,7 +51,8 @@ export const useEthereumTransaction = <
}, []);
const perform = useCallback(
// @ts-ignore TS errors here as TMethod doesn satisifed the constraints on TContract
// @ts-ignore TS errors here as TMethod doesn't satisify the constraints on TContract
// its a tricky one to fix but does enforce the correct types when calling perform
async (...args: Parameters<TContract[TMethod]>) => {
try {
if (