Skip to content
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

Merged
merged 1 commit into from
Apr 14, 2019
Merged

Fix callback types #2672

merged 1 commit into from
Apr 14, 2019

Conversation

alexkvak
Copy link

sendSignedTransaction returns transaction hash in callback.
contract.deploy.send returns transaction hash in callback.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 95.376% when pulling cf8c780 on alexkvak:fix-types-errors into 441c309 on ethereum:1.0.

2 similar comments
@coveralls
Copy link

Coverage Status

Coverage remained the same at 95.376% when pulling cf8c780 on alexkvak:fix-types-errors into 441c309 on ethereum:1.0.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 95.376% when pulling cf8c780 on alexkvak:fix-types-errors into 441c309 on ethereum:1.0.

@coveralls
Copy link

coveralls commented Apr 12, 2019

Coverage Status

Coverage remained the same at 95.376% when pulling 9fad0c2 on alexkvak:fix-types-errors into 441c309 on ethereum:1.0.

Copy link
Contributor

@joshstevens19 joshstevens19 left a 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. Nice spot @alexkvak - looks good 👍 @nivida can you merge please.

Copy link
Contributor

@princesinha19 princesinha19 left a 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.

packages/web3-eth-contract/types/tests/contract-test.ts Outdated Show resolved Hide resolved
@@ -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>
Copy link
Contributor

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) => {});
Copy link
Contributor

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.
@nivida nivida added the Types Incorrect or missing types label Apr 14, 2019
@nivida nivida merged commit be9582b into web3:1.0 Apr 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Types Incorrect or missing types
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants