Skip to content

env.auths() mismatch for constructors between WASM and Rust contracts #1800

@mootz12

Description

@mootz12

What version are you using?

25.3.0

What did you do?

Created a contract that used require_auth in the constructor, and tested it using the WASM and the Rust crate.

What did you expect to see?

Both tests record the require_auth performed in the constructor.

What did you see instead?

Only the Rust crate successfully recorded the require_auth in the constructor.

Note - the auth is correctly verified on-chain. This bug only impacts the testutils env.auths() function recommended by the SDK to help test authorizations requested by the contract.

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