Skip to content

Commit

Permalink
Merge pull request #1975 from o1-labs/fix/fetch-events
Browse files Browse the repository at this point in the history
Fix event data type inconsistency between LocalBlockchain and Mina
  • Loading branch information
hattyhattington17 authored Jan 23, 2025
2 parents fd0c148 + dcfca23 commit 54d9a52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,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

Expand Down
4 changes: 2 additions & 2 deletions src/lib/mina/local-blockchain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: '',
Expand Down

0 comments on commit 54d9a52

Please sign in to comment.