How to enable the ICRC-2 methods on local ICP ledger

I have deployed the ICP ledger locally, there’s ICRC2 methods that I can call, but when I call them, it threw me this error:

How can I resolve this?

binary revision: 69e1408347723dbaa7a6cd2faa9b65c42abbe861

1 Like

but when I try the icrc2_allowance method on the nns ledger on the IC network, it’s not trapped and i got the expected result:
image

interesting

nevermind, i just have to set the featureflag’s icrc2 to true and now it’s all working

1 Like