mesh icon indicating copy to clipboard operation
mesh copied to clipboard

Memory access out of bounds

Open gammahazard opened this issue 11 months ago • 2 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

gammahazard avatar Mar 22 '24 03:03 gammahazard

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)

WolfRayet4 avatar Apr 02 '24 00:04 WolfRayet4

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.

jinglescode avatar May 02 '24 10:05 jinglescode