warp icon indicating copy to clipboard operation
warp copied to clipboard

Fix function naming of functions inside traits

Open rodrigo-pino opened this issue 2 years ago • 0 comments

Functions inside WarpMemory, are being called this way:

let x = warp_memory.get_or_create_id(...)

Because, currently warp_memory is invisible to the solidity AST, the warp_memory. prefix is included in the naming. So for the example above, get_or_create_id is actually called warp_memory.get_or_create_id.

Two possible solutions are including WarpMemory to the AST, and making all function calls part of a member access, or keep it hidden. The second one is fastest, and easy (it would be cool to implement it in a non hacky way)

rodrigo-pino avatar May 22 '23 03:05 rodrigo-pino