class Eth::Client
def deploy_and_wait(contract, sender_key: nil, legacy: false)
-
(String)
- the contract address.
Parameters:
-
legacy
(Boolean
) -- enables legacy transactions (pre-EIP-1559). -
sender_key
(Eth::Key
) -- the sender private key. -
contract
(Eth::Contract
) -- contracts to deploy. -
sender_key
(Eth::Key
) -- the sender private key. -
contract
(Eth::Contract
) -- contracts to deploy. -
contract
(Eth::Contract
) -- contracts to deploy.
Overloads:
-
deploy(contract, sender_key, legacy)
-
deploy(contract, sender_key)
-
deploy(contract)
def deploy_and_wait(contract, sender_key: nil, legacy: false) hash = wait_for_tx(deploy(contract, sender_key: sender_key, legacy: legacy)) contract.address = eth_get_transaction_receipt(hash)["result"]["contractAddress"] end