Method: Web3::Eth::Contract::ContractMethod#parse_component_type
- Defined in:
- lib/web3/eth/contract.rb
#parse_component_type(argument) ⇒ Object
44 45 46 47 48 49 50 |
# File 'lib/web3/eth/contract.rb', line 44 def parse_component_type argument if argument['type']=~/^tuple((\[[0-9]*\])*)/ argument['components'] ? "(#{argument['components'].collect{|c| parse_component_type c }.join(',')})#{$1}" : "()#{$1}" else argument['type'] end end |