This repository was archived by the owner on Mar 5, 2025. It is now read-only.
File tree 4 files changed +6
-2
lines changed
packages/web3-utils/types
4 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -144,6 +144,7 @@ Released with 1.0.0-beta.37 code base.
144
144
- Add revert reason support to sendSignedTransaction
145
145
- ENS module extended with the possibility to add a custom registry (#3301 )
146
146
- Missing ENS Registry methods and Resolver.supportsInterface method added (#3325 )
147
+ - Add optional gas type to AbiItem typescript definitions (for ABIs generated by Vyper)
147
148
148
149
### Changed
149
150
Original file line number Diff line number Diff line change @@ -220,6 +220,7 @@ export interface AbiItem {
220
220
payable ?: boolean ;
221
221
stateMutability ?: StateMutabilityType ;
222
222
type : AbiType ;
223
+ gas ?: number ;
223
224
}
224
225
225
226
export interface AbiInput {
Original file line number Diff line number Diff line change @@ -101,7 +101,8 @@ const abiItem: AbiItem = {
101
101
] ,
102
102
payable : false ,
103
103
stateMutability : "pure" ,
104
- type : "function"
104
+ type : "function" ,
105
+ gas : 175875
105
106
} ;
106
107
// $ExpectType string
107
108
jsonInterfaceMethodToString ( abiItem ) ;
Original file line number Diff line number Diff line change @@ -28,7 +28,8 @@ var abi = [
28
28
] ,
29
29
payable : false ,
30
30
type : "function" ,
31
- stateMutability : "view"
31
+ stateMutability : "view" ,
32
+ gas : 175875
32
33
}
33
34
] ;
34
35
You can’t perform that action at this time.
0 commit comments