This repository was archived by the owner on Mar 5, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed
packages/web3-eth-contract/types Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -71,4 +71,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
71
71
72
72
- miner.startMining fixed (#2877 )
73
73
- Subscription type definitions fixed (#2919 )
74
+ - `` ContractOptions `` type definitions corrected (#2939 )
74
75
Original file line number Diff line number Diff line change 20
20
import BN = require( 'bn.js' ) ;
21
21
import { provider } from 'web3-providers' ;
22
22
import { AbiInput , AbiOutput , AbiItem } from 'web3-utils' ;
23
- import { PromiEvent } from 'web3-core' ;
23
+ import { PromiEvent , Web3ModuleOptions } from 'web3-core' ;
24
24
25
25
export class Contract {
26
26
constructor (
@@ -94,11 +94,15 @@ export interface EstimateGasOptions {
94
94
value ?: number | string | BN ;
95
95
}
96
96
97
- export interface ContractOptions {
98
- from : string ;
99
- gasPrice : string ;
100
- gas : number ;
101
- data : string ;
97
+ export interface ContractOptions extends Web3ModuleOptions {
98
+ // Sender to use for contract calls
99
+ from ?: string ;
100
+ // Gas price to use for contract calls
101
+ gasPrice ?: string ;
102
+ // Gas to use for contract calls
103
+ gas ?: number ;
104
+ // Contract code
105
+ data ?: string ;
102
106
}
103
107
104
108
export interface EventOptions {
You can’t perform that action at this time.
0 commit comments