Update debug information when injecting gas metering
Closed this issue · 4 comments
mangas commented
Injecting the gas metering causes the function indices to shift. This causes any stacktraces using the name section to be wrong for any function with an index higher than the injected gas meter functions.
athei commented
This should be optional. When using this on chain like pallet-contracts does we certainly don't want to deal with strings.
mangas commented
changing the signature would be a breaking change, is it worth having a second inject_with_debug
sort of thing?
mangas commented
Just to be clear, on my previous comment I'm assuming a scenario where there is debug information but by default it would not be changed. If those have no debug information then nothing happens.