MCPcopy Create free account
hub / github.com/base/base / build_unsigned

Method build_unsigned

crates/common/network/src/builder.rs:51–60  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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,

Calls 3

build_typed_txMethod · 0.80
as_refMethod · 0.45
cloneMethod · 0.45