Assertion failed error

Hi guys, I‘m having this error:

The Replica returned an error: code 5, message: “Canister trapped explicitly: assertion failed at heca.mo:218.3-218.32”

Here are the lines 217-220 in heca.mo:

public shared(msg) func setFrontendCanister(canisterID : Text) : async {
assert(msg.caller == _minter, “Only the minter can call this function.”);
_frontendCanister := canisterID;
};

How can I fix this error?

Doesn’t look like a bug. It’s working as intended.
You need to see what sets _minter and set it to your principal before calling this function