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 TypeScript 'ContractOptions' interface #2939

Merged
merged 5 commits into from
Jul 16, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions packages/web3-eth-contract/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,16 @@ export interface EstimateGasOptions {
}

export interface ContractOptions {
nivida marked this conversation as resolved.
Show resolved Hide resolved
from: string;
gasPrice: string;
gas: number;
data: string;
// Sender to use for contract calls
from?: string;
// Gas price to use for contract calls
gasPrice?: string;
// Gas to use for contract calls
gas?: number;
// Contract code
data?: string;
// Number of blocks until a contract call transaction is considered confirmed
transactionConfirmationBlocks?: number
}

export interface EventOptions {
Expand Down