Macro ethcontract_mock::mock_contract

source ·
macro_rules! mock_contract {
    ($mock:ident, $contract:ident) => { ... };
}
Expand description

Deploy a mocked version of a generated contract.

§Parameters

  • mock: a Mock instance.
  • contract type of the contract.

§Examples

let mock = Mock::new(1234);
let (contract, instance) = mock_contract!(mock, ERC20);