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

Function send_icp

tests/integration/src/interfaces.rs:77–86  ·  view source on GitHub ↗
(
    env: &PocketIc,
    sender_id: Principal,
    beneficiary_id: Principal,
    e8s: u64,
    memo: u64,
)

Source from the content-addressed store, hash-verified

75}
76
77pub fn send_icp(
78 env: &PocketIc,
79 sender_id: Principal,
80 beneficiary_id: Principal,
81 e8s: u64,
82 memo: u64,
83) -> Result<u64, TransferError> {
84 let to = AccountIdentifier::new(&beneficiary_id, &DEFAULT_SUBACCOUNT);
85 send_icp_to_account(env, sender_id, to, e8s, memo, None, None)
86}
87
88pub fn mint_icp(
89 env: &PocketIc,

Callers 1

make_transfer_successfulFunction · 0.85

Calls 1

send_icp_to_accountFunction · 0.85

Tested by 1

make_transfer_successfulFunction · 0.68