tuminfei / icrc7_launchpad

An example implementation of ICRC7 containing ICRC37 and ICRC3 standards.
MIT License
6 stars 2 forks source link

fix bug in hash_icrc_value #1

Closed TheDarkRuler closed 2 months ago

TheDarkRuler commented 2 months ago

fix bug where copy_from_slice could have not copied a slice of length 8 in a slice of length 32

Error: " [Canister bw4dl-smaaa-aaaaa-qaacq-cai] Panicked at 'source slice length (8) does not match destination slice length (32)', src/icrc7/src/utils.rs:45:12 "

tuminfei commented 2 months ago

Thank you very much for your attention and fix. I checked the relevant code again and found that there is an implementation of hash in the library. I have replaced my wrong implementation.

tuminfei commented 2 months ago

I will close this PR first. I hope to receive your follow-up support.