Method: Web3::Eth::Abi::Type#initialize

Defined in:
lib/web3ethereum/abi/type.rb

#initialize(base, sub, dims) ⇒ Type

Returns a new instance of Type.

Parameters:

  • base (String)

    base name of type, e.g. uint for uint256

  • sub (String)

    subscript of type, e.g. 256 for uint256

  • dims (Array[Integer])

    dimensions of array type, e.g. [1,2,0] for uint256[2][], [] for non-array type



67
68
69
70
71
# File 'lib/web3ethereum/abi/type.rb', line 67

def initialize(base, sub, dims)
  @base = base
  @sub = sub
  @dims = dims
end