cosmwasm
cosmwasm copied to clipboard
Function name "set_dynamic_callstack" is not good
https://github.com/Finschia/cosmwasm/blob/a5f8b5ffe581cd56a73922a460197d2913ac1c61/packages/vm/src/environment.rs#L380-L381
The name set_dynamic_callstack
is not good.
-
set_dynamic_callstack
not only sets the call stack but also validates that the call stack does not have the called contract's address. -
set_dynamic_callstack
adds the called contract's address to the top of the call stack rather than sets.
Renaming this function's name affects wasmvm (https://github.com/Finschia/wasmvm/blob/1e43355ed2255e4aed7fabb2e4323caa2bd3e02a/libwasmvm/src/dynamic_link.rs#L152).