EVM Opcodes for Gas Optimizations

Поделиться
HTML-код
  • Опубликовано: 15 ноя 2024

Комментарии • 11

  • @codeWithBala
    @codeWithBala Год назад

    The questions asked in this live is really very standard! Nice to hear to the answers for the questions

  • @Silvertestrun
    @Silvertestrun Год назад +1

    Thank you!

  • @lemmynjaria65
    @lemmynjaria65 2 года назад

    Thank you Patrick I have learnt a lot.

  • @puneetshekhar153
    @puneetshekhar153 Год назад

    so it want to answer Matt Jafarzadeh question:
    ​so when we declare a global variable and then call it in a function its gets saved to storage. Does it get overwritten or saves another value in different place?
    Answer: when a state variable is assigned globally with storage, it takes a slot in evm storage where each slot is of 32bytes, when ever a variable gets updated inside a function the storage slot allotted for that variable will get updated and value will be OverWritten, this is done by evm to make efficent use of storage and maintain consitency.

  • @DevrajSinghRawat
    @DevrajSinghRawat 2 года назад

    wonderful efforts ..many thxs for the content

  • @josht7238
    @josht7238 2 года назад

    thanks heaps, explained very well

  • @haohuynhnhat3881
    @haohuynhnhat3881 2 года назад

    wait a minute, 31:13 line 17 "s_index += index" meaning that you want to add "index" to storage variable "s_index", but after that you change it to "currentIndex += index", isn't it completely different than the previous? because now you don't change the storage variable anymore?

  • @DevrajSinghRawat
    @DevrajSinghRawat 2 года назад

    constants are stored in CODE along with bytecode.

  • @patricksfeir6947
    @patricksfeir6947 2 года назад

    Where can we get the ppt ?

  • @yifengcao7918
    @yifengcao7918 2 года назад

    Can you share the slides? Thank you very much.

  • @justkaz7104
    @justkaz7104 Год назад

    261