Extend cycles minting canister functionality

Hi, rem.codes. Sorry it’s not working for you.

The magic memo you need is

  • 84 = 0x54 = ‘T’
  • 80 = 0x50 = ‘P’
  • 85 = 0x55 = ‘U’
  • 80 = 0x50 = ‘P’
  • 0
  • 0
  • 0
  • 0

Whereas, your transaction’s icrc1_memo is “PUPT”. Therefore, IIUC, you need to

  1. reverse (“TPUP”), then
  2. pad with four 0’s

(Rationale: CMC translates from a blob to an unsigned 64-bit integer, and uses little endian convention (like WASM).)

Hope this works for you. LMK if you still have problems.

Reference(s)

Here is precisely how CMC interprets icrc1_memo.