Hello
i’ve been using motoko for my project these days. today i wrote a function in a actor like this
public shared func nat8Arr2Text(arr: [Nat8]): async Text {
var res: Text = "";
var toIter: Iter.Iter<Nat8> = Array.vals(arr);
for(val in toIter) {
res := res # Nat8.toText(val);
};
res
};
it compiled and no error came out. but when i open Candid UI for test in local network by feeding paramters. there came out a error:
Cannot mix BigInt and other types, use explicit conversions
Is there anyone knowing what happened here?
much thanks.