MeshJS / mesh

An open-source library to advance Web3 development on Cardano

Home Page:https://meshjs.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Memory access out of bounds

gammahazard opened this issue · comments

hey I was trying to use webpack to bundle meshjs and use it so it can be imported into an html page, the browser wallet object is imported fine and I can connect to different wallets, but when I try to build a transaction I get the error RuntimeError: memory access out of bounds
ee9ce0ccc9281f3bf70f847a0eaddfd6

I was running a simple express server and rendering the html on that for testing

Not sure if this is the same issue I encountered - but I found this error occur when you pass the quantity as an integer rather than a string. It needs to be a string (of the number)

Not sure if this is the same issue I encountered - but I found this error occur when you pass the quantity as an integer rather than a string. It needs to be a string (of the number)

@gammahazard this could be the case, in order to prevent rounding errors, we made a design choice to use strings for numbers. Quantity needs to be strings.