| 49 | } |
| 50 | |
| 51 | fn build_unsigned(self) -> BuildResult<BaseTypedTransaction, Base> { |
| 52 | if let Err((tx_type, missing)) = self.as_ref().missing_keys() { |
| 53 | let tx_type = OpTxType::try_from(tx_type as u8).map_err(|e| { |
| 54 | TransactionBuilderError::<Base>::custom(e).into_unbuilt(self.clone()) |
| 55 | })?; |
| 56 | return Err(TransactionBuilderError::InvalidTransactionRequest(tx_type, missing) |
| 57 | .into_unbuilt(self)); |
| 58 | } |
| 59 | Ok(self.build_typed_tx().expect("checked by missing_keys")) |
| 60 | } |
| 61 | |
| 62 | async fn build<W: alloy_network::NetworkWallet<Base>>( |
| 63 | self, |