intellij-ton icon indicating copy to clipboard operation
intellij-ton copied to clipboard

(2.0) Trick to convert constants to functions with asm and back

Open MicroNovaX opened this issue 1 year ago • 6 comments

I propose to add an IntelIJ trick that allows you to convert strings such as const int i = 1; to such (int) i() asm "PUSHINT 1" and vice versa. This will help to refactor the code more conveniently and make it more gas-efficient.

MicroNovaX avatar Aug 06 '23 19:08 MicroNovaX

Good

Savioure avatar Jun 25 '24 12:06 Savioure

Good

petvaizAkhtar avatar Aug 03 '24 19:08 petvaizAkhtar

I propose to add an IntelIJ trick that allows you to convert strings such as const int i = 1; to such (int) i() asm "PUSHINT 1" and vice versa. This will help to refactor the code more conveniently and make it more gas-efficient.

Cryptocurrencykh1 avatar Sep 01 '24 12:09 Cryptocurrencykh1

I propose to add an IntelIJ trick that allows you to convert strings such as const int i = 1; to such (int) i() asm "PUSHINT 1" and vice versa. This will help to refactor the code more conveniently and make it more gas-efficient.

Cryptocurrencykh1 avatar Sep 01 '24 12:09 Cryptocurrencykh1

Cool

Elgayar777 avatar Sep 10 '24 03:09 Elgayar777