chore: fix comment and any type
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user