MCPcopy Create free account
hub / github.com/dfinity/orbit / from

Method from

core/station/impl/src/mappers/request_operation.rs:131–140  ·  view source on GitHub ↗
(operation: AddAccountOperationDTO)

Source from the content-addressed store, hash-verified

129
130impl From<AddAccountOperationDTO> for AddAccountOperation {
131 fn from(operation: AddAccountOperationDTO) -> AddAccountOperation {
132 AddAccountOperation {
133 account_id: operation.account.map(|account| {
134 *HelperMapper::to_uuid(account.id)
135 .expect("Invalid account id")
136 .as_bytes()
137 }),
138 input: operation.input.into(),
139 }
140 }
141}
142
143impl From<station_api::AddAccountOperationInput> for AddAccountOperationInput {

Callers

nothing calls this directly

Calls 10

trapFunction · 0.85
UpgradeInterface · 0.85
mapMethod · 0.80
iterMethod · 0.80
parseMethod · 0.80
SnapshotClass · 0.50
TransferClass · 0.50
SystemUpgradeClass · 0.50
getMethod · 0.45
to_dtoMethod · 0.45

Tested by

no test coverage detected