Create flashblock payload with token deployment
(&self)
| 96 | |
| 97 | /// Create flashblock payload with token deployment |
| 98 | fn create_deploy_payload(&self) -> Flashblock { |
| 99 | let mut transactions = vec![self.token_deploy_tx.clone()]; |
| 100 | if let Some(proxy_tx) = &self.proxy_deploy_tx { |
| 101 | transactions.push(proxy_tx.clone()); |
| 102 | } |
| 103 | |
| 104 | Flashblock { |
| 105 | payload_id: PayloadId::new([0; 8]), |
| 106 | index: 1, |
| 107 | base: None, |
| 108 | diff: ExecutionPayloadFlashblockDeltaV1 { |
| 109 | state_root: B256::default(), |
| 110 | receipts_root: B256::default(), |
| 111 | gas_used: 700_000, |
| 112 | block_hash: B256::default(), |
| 113 | blob_gas_used: Some(0), |
| 114 | transactions, |
| 115 | withdrawals: Vec::new(), |
| 116 | logs_bloom: Default::default(), |
| 117 | withdrawals_root: Default::default(), |
| 118 | }, |
| 119 | metadata: Metadata::new(1), |
| 120 | } |
| 121 | } |
| 122 | |
| 123 | /// Create flashblock payload with mint transaction |
| 124 | fn create_mint_payload(&self, mint_tx: Bytes) -> Flashblock { |
no test coverage detected