-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix callback types #2672
Fix callback types #2672
Conversation
2 similar comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this PR @alexkvak.
@@ -121,7 +121,7 @@ export class Eth extends AbstractWeb3Module { | |||
|
|||
sendTransaction(transactionConfig: TransactionConfig, callback?: (error: Error, hash: string) => void): PromiEvent<TransactionReceipt>; | |||
|
|||
sendSignedTransaction(signedTransactionData: string, callback?: (error: Error, gas: string) => void): PromiEvent<TransactionReceipt> | |||
sendSignedTransaction(signedTransactionData: string, callback?: (error: Error, hash: string) => void): PromiEvent<TransactionReceipt> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here.
@@ -286,7 +286,7 @@ eth.sendTransaction( | |||
// $ExpectType PromiEvent<TransactionReceipt> | |||
eth.sendSignedTransaction('0xf889808609184e72a0008227109'); | |||
// $ExpectType PromiEvent<TransactionReceipt> | |||
eth.sendSignedTransaction('0xf889808609184e72a0008227109', (error: Error, gas: string) => {}); | |||
eth.sendSignedTransaction('0xf889808609184e72a0008227109', (error: Error, hash: string) => {}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here. can you please change hash to transactionHash
contract.deploy.send returns transaction hash in callback.
sendSignedTransaction returns transaction hash in callback.
contract.deploy.send returns transaction hash in callback.