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

Defined in:
lib/web3/eth/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



73
74
75
76
77
# File 'lib/web3/eth/abi/type.rb', line 73

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