(simple: bool)
| 36 | } |
| 37 | |
| 38 | pub async fn deploy_contract(simple: bool) -> H256 { |
| 39 | let web3 = web3(); |
| 40 | let from = *ACCOUNT_1; |
| 41 | let nonce = increment_account_1_nonce().await; |
| 42 | let data = if simple { |
| 43 | [0, 1].to_vec() |
| 44 | } else { |
| 45 | get_contract() |
| 46 | }; |
| 47 | web3.deploy(from, &data, Some(nonce)).await.unwrap() |
| 48 | } |
| 49 | } |
no test coverage detected