Option to strip symbols and annotations from bytecode #117

Closed
opened 2021-02-19 23:15:01 +09:00 by gorbak25 · 2 comments
gorbak25 commented 2021-02-19 23:15:01 +09:00 (Migrated from gitlab.com)

Right now bytecode we emit contains a lot of debug information - all of the symbols, annotations and the source hash. Take for instance the Superhero tipping contact:
image
I've deployed a sample contract without any symbols and it works fine:
https://aenalytics.org/transactions/th_Cs3XHatznTHAf8jB4rwxPzEuxyR89VN1jSVfMLXEmmgfGpN5z

Right now bytecode we emit contains a lot of debug information - all of the symbols, annotations and the source hash. Take for instance the Superhero tipping contact: ![image](https://user-images.githubusercontent.com/1352848/108515128-043a8580-72c5-11eb-86f2-56dec7905e84.png) I've deployed a sample contract without any symbols and it works fine: https://aenalytics.org/transactions/th_Cs3XHatznTHAf8jB4rwxPzEuxyR89VN1jSVfMLXEmmgfGpN5z
gorbak25 commented 2021-02-19 23:18:36 +09:00 (Migrated from gitlab.com)

The question now is whether the stripping should happen when compiling contracts or when deploying them.

The question now is whether the stripping should happen when compiling contracts or when deploying them.
zxq9 commented 2021-03-15 18:58:54 +09:00 (Migrated from gitlab.com)

Created by: nikita-fuchs

I prefer deploying, as we might extract some important debugging info from all this one time maybe. Is there an easy way for the SDK to strip this, or should we make the compiler have 2 different outputs ?

*Created by: nikita-fuchs* I prefer deploying, as we might extract some important debugging info from all this one time maybe. Is there an easy way for the SDK to strip this, or should we make the compiler have 2 different outputs ?
zxq9 closed this issue 2025-01-22 20:18:10 +09:00
Sign in to join this conversation.
No Milestone
No project
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: QPQ-AG/gmbytecode#117
No description provided.