Skip to content

Fix JSON serialization of Env.block.transaction #341

@webmaster128

Description

@webmaster128

The JSON field name annotation in this line is wrong:

Transaction *TransactionInfo `json:"transaction_info,omitempty"`
. It needs to be called transaction. Right now the transaction field is undefined, deserializing to None in the contract. The extra transaction_info field is ignored in deserialization.

This bug was introduced in #260, i.e. never worked before.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions