Taking Smart Notes With Org-mode
  • About
  • Articles
  • Notes
  • Search
Home » Notes

starcoin issue solving

June 11, 2022 · 1 min · Gray King
  • tags: Starcoin Web3 StarTrek

Links to this note


    starcoin#3450

    tags: Starcoin Web3 StarTrek,starcoin issue solving Today I saw this issue: starcoin#3450 at GitHub, I decide to give it a try. The corresponding type VMStatus is defined out of starcoin’s reposiotry, here. The work need to be done seems are: convert function from u16 to a readable string. convert status_code from StatusCode to a readable string. Let’s take a look at StatusCode first, StatusCode is a enum that contains lot of variants, WOW! My intuition is that can we just get the name of the variant by it’s value. Or I’ll write an ugly match that contains tons of arms. Maybe there already existed some similar code, Let me do a search. ...

    June 11, 2022 · 2 min · Gray King
© 2025 Taking Smart Notes With Org-mode · Powered by Hugo & PaperMod