Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix event data type inconsistency between LocalBlockchain and Mina #1975

Merged
merged 2 commits into from
Jan 23, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -48,6 +48,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
- Compiling stuck in the browser for recursive zkprograms https://github.com/o1-labs/o1js/pull/1906
- Error message in `rangeCheck16` gadget https://github.com/o1-labs/o1js/pull/1920
- Deprecate `testnet` `networkId` in favor of `devnet` https://github.com/o1-labs/o1js/pull/1938
- Fix event data type inconsistency between LocalBlockchain and Mina https://github.com/o1-labs/o1js/pull/1975

## [2.1.0](https://github.com/o1-labs/o1js/compare/b04520d...e1bac02) - 2024-11-13

4 changes: 2 additions & 2 deletions src/lib/mina/local-blockchain.ts
Original file line number Diff line number Diff line change
@@ -236,9 +236,9 @@ async function LocalBlockchain({
events[addr] ??= {};
if (p.body.events.data.length > 0) {
events[addr][tokenId] ??= [];
let updatedEvents = p.body.events.data.map((data) => {
let updatedEvents = p.body.events.data.map((data: Field[]) => {
return {
data,
data: data.map(e => e.toString()),
transactionInfo: {
transactionHash: '',
transactionStatus: '',