multiversx / mx-sdk-js-network-providers

Network Provider (API, Gateway) components (compatible with sdk-js).
Other
6 stars 6 forks source link

Added a TransactionEventData class #40

Closed popenta closed 1 year ago

popenta commented 1 year ago

The data field of a TransactionEvent couldn't always be decoded, so now we have a TransactionEventData class that stores the raw value.

In the TransactionEvent class we've kept the data field for compatibility reasons, but the dataPayload field should be used. In the future the field will be removed and the new field will take it's place.