Skip to content

Getting "account procedure is not the authentication procedure" failed assertion with RpoFalcon512 auth_component #1644

@greenhat

Description

@greenhat

Any ideas, why I'm getting this error when consuming a note with client.new_transaction(). My account is built with .with_auth_component(RpoFalcon512::new(key_pair.public_key())).

The test is - https://github.com/0xMiden/compiler/blob/801f39e986e45b0cfbfbfa4f2ca6551b4ee9180d/tests/integration-node/src/node_tests/counter_contract.rs?plain=1

Highlights:

The account is constructed as https://github.com/0xMiden/compiler/blob/801f39e986e45b0cfbfbfa4f2ca6551b4ee9180d/tests/integration-node/src/node_tests/counter_contract.rs?plain=1#L55-L92 , where account_component is the counter contract.

The scenario is https://github.com/0xMiden/compiler/blob/801f39e986e45b0cfbfbfa4f2ca6551b4ee9180d/tests/integration-node/src/node_tests/counter_contract.rs?plain=1#L160-L230

The error is on let tx_result = client.new_transaction(counter_account.id(), consume_request).await.unwrap();

The test is running against a bootstrapped local node and builds a fresh client on each run.

To reproduce, run cargo test counter_contract_local in 0xMiden/compiler#555

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions