I believe the “to_subaccount,” “from_subaccount,” and “max_fee” arguments are correct, as these were used successfully in a prior send_dfx() call using the same types (SubAccounts, and ICPTs).
The “block_height” argument is the awaited result of the prior send_dfx(), so I believe that this is probably also correct.
The “to_canister” argument I’m not sure about. Based on the source at line 204, it looks like “to_canister” should be a principal identifier, and not a Principal - is that right? But using either, I get this deserialization error.
Appreciate any help.
EDIT: It looks like the “to_canister” should be a Principal, and I have gotten the call to work like this.
The notify_dfx call looks correct to me, it’s hard to say for sure where the problem comes from without having more context. Do you have a GitHub repo/gist with the full actor code? Also, which candid file do you use to make the calls?
Hey Roman - thanks for getting back! I’ve actually got this call working now - the challenge was in formatting the “to_subaccount” properly, as a derivative of the principal of the canister to be topped up. Appreciate the follow-up!