Skip to content
This repository was archived by the owner on Jan 9, 2026. It is now read-only.
This repository was archived by the owner on Jan 9, 2026. It is now read-only.

(env-data) not initialized when starting REPL #1186

@CryptoPascal31

Description

@CryptoPascal31

It looks like that the environment data is not initialized when starting the REPL.

Thus, when I try to read it, Pact gives a weird error message:

 pact> (read-msg)
<interactive>:0:0: read-msg: parse failed: parsing ObjectMap failed, expected Object, but encountered Null: null
 at <interactive>:0:0: (read-msg)
pact> 

Hopefully after a correct init, everything goes back to normal:

pact> (env-data {})
"Setting transaction data"
pact> (read-msg )
{}
pact>

IMO, (env-data) should be automatically initialized to the empty object: {} by the REPL.
Exactly like on-chain, where the transaction data can't be Null and is at least the empty object.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions