warp-contracts / warp

An implementation of the Arweave SmartWeave smart contracts protocol.
MIT License
159 stars 44 forks source link

[FEATURE] Add dynamic `APP_VERSION` tag when creating interaction #412

Closed asiaziola closed 7 months ago

asiaziola commented 1 year ago

Is your feature request related to a problem? Please describe. Currently, SMART_WEAVE_TAGS.APP_VERSION tag is hardcoded to 0.3.0

Describe the solution you'd like We could consider making the tag value dynamic based on the SDK version used to create an interaction.

Additional context It seems that the above solution works easily in node.js env. However, in browser - we should find a way to read packakge.json (simply import is not enough as package.json is not part of the web bundle).