Skip to content

AppClient doesn't return custom error message when called via inner txn  #396

Closed
@gidonkatten

Description

@gidonkatten

Subject of the issue

PuyaPy contract called by inner txn doesn't provide custom error messages.

Your environment

AlgoKit: 2.6.2

Steps to reproduce

See https://gist.github.com/gidonkatten/be6fe0bd55fbe92c013a229376b2b54e containing:

  • Test.py which contains the two contracts
  • test.ts which contains the tests

Actual behaviour

When running the file test.ts with `jest, the test with the inner txn calls fails:

Expected substring: "custom error message"
Received message:   "inner tx 0 failed: logic eval error: err opcode executed. Details: app=1188, pc=29, opcodes=txn ApplicationID; assert; err; label1:. at:43. Network request error. Received status 400 (Bad Request): TransactionPool.Remember: transaction BGIMPNJZDGHKOERORFGHDV6SSQQ3MEYSCKP5GJXOKXE62JVFXODA: logic eval error: inner tx 0 failed: logic eval error: err opcode executed. Details: app=1188, pc=29, opcodes=txn ApplicationID; assert; err; label1:. Details: app=1189, pc=56, opcodes=intc_0 // 0; itxn_field Fee; itxn_submit"

Expected behaviour

Both tests to pass

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions