lib/klaytn/contract.rb in klaytn-0.0.7 vs lib/klaytn/contract.rb in klaytn-0.0.8
- old
+ new
@@ -29,10 +29,10 @@
JSON.parse(resp.body)
end
## DEPRECATE: definition ex: 'addAddressToWhitelist(address)' - string literal Solidity function definition
# definition ex: 'addAddressToWhitelist' - string literal Solidity function definition, without parameters/parens
- # inputs ex: [ OpenStruct.new({ "internalType": "address", "name": "addr", "type": "address" }) ] - array of dot-notation object from ABI
+ # inputs ex: [OpenStruct.new({ "internalType": "address", "name": "addr", "type": "address" })] - array of dot-notation object from ABI
# params ex: ['0x0xxxx'] - array of arguments accepted by function
def invoke_function(definition, params)
raise MISSING_CONTRACT if contract_address.blank?
raise MISSING_ABI if abi.blank?