Skip to content

Commit 54d9a52

Browse files
Merge pull request #1975 from o1-labs/fix/fetch-events
Fix event data type inconsistency between LocalBlockchain and Mina
2 parents fd0c148 + dcfca23 commit 54d9a52

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
4949
- Compiling stuck in the browser for recursive zkprograms https://github.com/o1-labs/o1js/pull/1906
5050
- Error message in `rangeCheck16` gadget https://github.com/o1-labs/o1js/pull/1920
5151
- Deprecate `testnet` `networkId` in favor of `devnet` https://github.com/o1-labs/o1js/pull/1938
52+
- Fix event data type inconsistency between LocalBlockchain and Mina https://github.com/o1-labs/o1js/pull/1975
5253

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

src/lib/mina/local-blockchain.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,9 @@ async function LocalBlockchain({
236236
events[addr] ??= {};
237237
if (p.body.events.data.length > 0) {
238238
events[addr][tokenId] ??= [];
239-
let updatedEvents = p.body.events.data.map((data) => {
239+
let updatedEvents = p.body.events.data.map((data: Field[]) => {
240240
return {
241-
data,
241+
data: data.map(e => e.toString()),
242242
transactionInfo: {
243243
transactionHash: '',
244244
transactionStatus: '',

0 commit comments

Comments
 (0)