<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Thammanoon Karnchuchor on Medium]]></title>
        <description><![CDATA[Stories by Thammanoon Karnchuchor on Medium]]></description>
        <link>https://medium.com/@tammanoon24?source=rss-8aea729b6613------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*8lXm_hN3bdryCSqn.</url>
            <title>Stories by Thammanoon Karnchuchor on Medium</title>
            <link>https://medium.com/@tammanoon24?source=rss-8aea729b6613------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 23:51:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tammanoon24/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[ปัญหาที่พบตอนทำ Mint NFT Cross-Chain]]></title>
            <link>https://medium.com/under-ledger/%E0%B8%9B%E0%B8%B1%E0%B8%8D%E0%B8%AB%E0%B8%B2%E0%B8%97%E0%B8%B5%E0%B9%88%E0%B8%9E%E0%B8%9A%E0%B8%95%E0%B8%AD%E0%B8%99%E0%B8%97%E0%B8%B3-mint-nft-cross-chain-c8eef9d6b756?source=rss-8aea729b6613------2</link>
            <guid isPermaLink="false">https://medium.com/p/c8eef9d6b756</guid>
            <dc:creator><![CDATA[Thammanoon Karnchuchor]]></dc:creator>
            <pubDate>Mon, 20 Jun 2022 10:36:27 GMT</pubDate>
            <atom:updated>2022-06-24T03:49:40.347Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2LukBtGGs_4AFFkmyaMjBg.png" /><figcaption>ภาพตัวอย่าง error ค่า gas ไม่พอ</figcaption></figure><p>วันนี้มาเล่าประสบการณ์ที่เจอระหว่างทดลองทำการ mint nft cross chain ด้วย axelar พบปัญหาการ mint nft ไม่สำเร็จ พอเปิดดูที่ axelar scan พบว่า<strong>ค่า gas ตอนที่ execute contract ปลายทางเพื่อ mint nft นั้นไม่พอ</strong> จึงทำการหาสาเหตุต่อไป</p><p>จากการกลับไปอ่าน doc ของ axelar ใหม่อีกครั้ง ก็พบว่า code ตอนในนี้ไม่ได้ทำการเตรียมค่า gas สำหรับ execute contract ที่ chain ปลายทาง จึงทำการเพิ่ม code เพื่อแก้ปัญหาดังกล่าว</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5969de238574bfd115115701cc80c2dc/href">https://medium.com/media/5969de238574bfd115115701cc80c2dc/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c096645fdb98411de9f3c7845a4383ff/href">https://medium.com/media/c096645fdb98411de9f3c7845a4383ff/href</a></iframe><p><strong>References</strong></p><ul><li><a href="https://docs.axelar.dev/dev/gas-receiver">Axelar Gas Reciever</a></li><li><a href="https://docs.axelar.dev/dev/chain-names">Chain names</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c8eef9d6b756" width="1" height="1" alt=""><hr><p><a href="https://medium.com/under-ledger/%E0%B8%9B%E0%B8%B1%E0%B8%8D%E0%B8%AB%E0%B8%B2%E0%B8%97%E0%B8%B5%E0%B9%88%E0%B8%9E%E0%B8%9A%E0%B8%95%E0%B8%AD%E0%B8%99%E0%B8%97%E0%B8%B3-mint-nft-cross-chain-c8eef9d6b756">ปัญหาที่พบตอนทำ Mint NFT Cross-Chain</a> was originally published in <a href="https://medium.com/under-ledger">Under Ledger</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ethereum 2.0 คืออะไร?]]></title>
            <link>https://medium.com/under-ledger/ethereum-2-0-%E0%B8%84%E0%B8%B7%E0%B8%AD%E0%B8%AD%E0%B8%B0%E0%B9%84%E0%B8%A3-d21bac68ad46?source=rss-8aea729b6613------2</link>
            <guid isPermaLink="false">https://medium.com/p/d21bac68ad46</guid>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[ethereum-2]]></category>
            <dc:creator><![CDATA[Thammanoon Karnchuchor]]></dc:creator>
            <pubDate>Fri, 08 Apr 2022 03:02:32 GMT</pubDate>
            <atom:updated>2022-04-08T03:02:32.154Z</atom:updated>
            <content:encoded><![CDATA[<p>Ethereum 2.0 (ปัจจุบันเปลี่ยนเป็น <strong>consensus layer</strong>) คือ การอัพเกรด Ethereum เพื่อเพิ่มประสิทธิภาพ การรองรับธุรกรรม และ ความปลอดภัย โดยการเปลี่ยนการ consensus จาก Proof of work (PoW) ไปใช้ Proof of Stake (PoS)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kHfVr0eMewFvI6rUa2zQyw.png" /><figcaption>ภาพจาก <a href="https://blog.ethereum.org/2022/01/24/the-great-eth2-renaming/">https://blog.ethereum.org/2022/01/24/the-great-eth2-renaming/</a></figcaption></figure><h4><strong>ความแตกต่างระหว่าง Proof of work และ Proof of Stake</strong></h4><p><strong>Proof of Work</strong> จะต้องใช้ฮาร์ดแวร์ประสิทธิภาพสูงและพลังงานไฟฟ้ามาก เพื่อใช้ในการแข่งกันแก้โจทย์ที่ระบบกำหนดขึ้นมาเพื่อให้ได้สิทธิในการตรวจสอบและสร้างธุรกรรมนั้นบน chain</p><p><strong>Proof of Stake</strong> จะใช้การ stake eth ที่มีเพื่อเข้าร่วมเป็นผู้มีสิทธิในการตรวจสอบและสร้างธุรกรรม ซึ่งวิธีนี้จะใช้พลังงานไฟฟ้าน้อยกว่า และ ไม่จำเป็นต้องมีฮาร์ดแวร์ประสิทธิภาพสูง ตามข้อมูลล่าสุดการจะเข้าร่วมได้นั้นจำเป็นต้อง มี 32 eth ใช้ในการ stake เพื่อเข้าร่วม</p><p><strong>References</strong></p><ul><li><a href="https://decrypt.co/resources/what-is-ethereum-2-0">Ethereum 2.0 คืออะไร?</a></li><li><a href="https://ethereum.org/en/upgrades/">การ upgrade Ethereum</a></li><li><a href="https://ethereum.org/en/staking/">การ stake Ethereum</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d21bac68ad46" width="1" height="1" alt=""><hr><p><a href="https://medium.com/under-ledger/ethereum-2-0-%E0%B8%84%E0%B8%B7%E0%B8%AD%E0%B8%AD%E0%B8%B0%E0%B9%84%E0%B8%A3-d21bac68ad46">Ethereum 2.0 คืออะไร?</a> was originally published in <a href="https://medium.com/under-ledger">Under Ledger</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[การเขียน Comment ใน Solidity]]></title>
            <link>https://medium.com/under-ledger/%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B9%80%E0%B8%82%E0%B8%B5%E0%B8%A2%E0%B8%99-comment-%E0%B9%83%E0%B8%99-solidity-619468840c62?source=rss-8aea729b6613------2</link>
            <guid isPermaLink="false">https://medium.com/p/619468840c62</guid>
            <category><![CDATA[solidity-language]]></category>
            <category><![CDATA[solidity]]></category>
            <dc:creator><![CDATA[Thammanoon Karnchuchor]]></dc:creator>
            <pubDate>Wed, 30 Mar 2022 03:03:00 GMT</pubDate>
            <atom:updated>2022-03-30T03:03:00.842Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*Ek4R9z9_Rp9DP0mVcPhDcw.jpeg" /></figure><p>การเขียน comment คือ การเขียนอธิบาย code ที่พวกเราเขียนให้กับผู้อื่นที่ทำงานร่วมกันหรือตัวเราในอนาคตสามารถเข้าใจการทำงานของ code ได้</p><p><strong>ตัวอย่างการ comment พื้นฐาน</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b14964aa9eeb3ce3cb9daca27479c504/href">https://medium.com/media/b14964aa9eeb3ce3cb9daca27479c504/href</a></iframe><p>โดยใน Solidity community จะใช้รูปแบบที่เรียกว่า NatSpec จะมีการเขียนอธิบาย ตาม tags ต่างๆ โดยมีรูปแบบดังนี้</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6505ff8b6d2be57339136c75128bb1e5/href">https://medium.com/media/6505ff8b6d2be57339136c75128bb1e5/href</a></iframe><p>tags แต่ละอันจะมีความหมายและใช้ต่างกันดังนี้</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7d3bdbc41909c9c4ab3fa80bf868023d/href">https://medium.com/media/7d3bdbc41909c9c4ab3fa80bf868023d/href</a></iframe><p>Reference</p><ul><li><a href="https://docs.soliditylang.org/en/latest/natspec-format.html">https://docs.soliditylang.org/en/latest/natspec-format.html</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=619468840c62" width="1" height="1" alt=""><hr><p><a href="https://medium.com/under-ledger/%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B9%80%E0%B8%82%E0%B8%B5%E0%B8%A2%E0%B8%99-comment-%E0%B9%83%E0%B8%99-solidity-619468840c62">การเขียน Comment ใน Solidity</a> was originally published in <a href="https://medium.com/under-ledger">Under Ledger</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[วิธีการรับ ETH สำหรับใช้ test และ deploy บน test network]]></title>
            <link>https://medium.com/under-ledger/%E0%B8%A7%E0%B8%B4%E0%B8%98%E0%B8%B5%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%A3%E0%B8%B1%E0%B8%9A-eth-%E0%B8%AA%E0%B8%B3%E0%B8%AB%E0%B8%A3%E0%B8%B1%E0%B8%9A%E0%B9%83%E0%B8%8A%E0%B9%89-test-%E0%B9%81%E0%B8%A5%E0%B8%B0-deploy-%E0%B8%9A%E0%B8%99-test-network-af9b5629fa2d?source=rss-8aea729b6613------2</link>
            <guid isPermaLink="false">https://medium.com/p/af9b5629fa2d</guid>
            <dc:creator><![CDATA[Thammanoon Karnchuchor]]></dc:creator>
            <pubDate>Thu, 17 Mar 2022 12:01:28 GMT</pubDate>
            <atom:updated>2022-03-24T02:38:16.051Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*HHnV1es2LXBmhVxmJVBk4Q.jpeg" /></figure><p>ETH คือ สกุลเงินดิจิทัลของ Ethereum ใช้ในการทำธุรกรรมต่างๆ บน chain ของ Ethereum ซึ่งในการจะ deploy contract ของเราขึ้นไปทดสอบบน Test network นั้นก็ต้องใช้ ETH ด้วย ในบทความนี้จะแนะนำวิธีการรับ ETH (ETH ที่รับมาจะไม่สามารถนำไปใช้บน network อื่นๆได้)</p><blockquote>Test network คือ network สำหรับการ test ระบบต่างๆ ก่อนที่จะนำไป deploy ใช้งานจริงบน Main network</blockquote><p>วิธีการรับ ETH สำหรับใช้บน Test network</p><ol><li>สร้าง Metamask ใหม่สำหรับไว้ test โดยเฉพาะ</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2GzVIqEhJJLZT-MumEmvzg.jpeg" /></figure><p>2. คลิกที่ show/hide test network ที่หัวข้อ show test network คลิกที่ toggle ให้เป็น on</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*94SbROKW_7QhyKsmYbWhpA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GXJMa24dCIiityRRZTrLSA.jpeg" /></figure><p>3. เลือกที่ test network ที่จะใช้ในการ test (ในบทความนี้เลือกของ Ropsten Test Network)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MZm-gyzIEROdVLo2Vugc9w.jpeg" /><figcaption>Test network ที่เลือกจะถูกแสดงข้าง icon profile</figcaption></figure><p>4. คลิกที่ buy แล้วคลิกที่ get ether</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2mVvr7mLwHGa9cClfaHWTw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/855/1*YIMwR6WYUdEtqXseBZmT8Q.jpeg" /></figure><p>5. คลิกที่ request 1 ether from faucet</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*axrV-RP5T3taKlLygS7Fqg.jpeg" /><figcaption>รอระบบแจ้งผลการ request eth</figcaption></figure><p>ช่องทางอื่นๆสำหรับการรับ test eth</p><ul><li><a href="https://ethereum.org/en/developers/docs/networks/">Networks | ethereum.org</a></li><li><a href="https://rinkebyfaucet.com/">Rinkeby Faucet</a></li><li><a href="https://faucet.dimensions.network/">Ropsten Ethereum (rETH) Faucet</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=af9b5629fa2d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/under-ledger/%E0%B8%A7%E0%B8%B4%E0%B8%98%E0%B8%B5%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%A3%E0%B8%B1%E0%B8%9A-eth-%E0%B8%AA%E0%B8%B3%E0%B8%AB%E0%B8%A3%E0%B8%B1%E0%B8%9A%E0%B9%83%E0%B8%8A%E0%B9%89-test-%E0%B9%81%E0%B8%A5%E0%B8%B0-deploy-%E0%B8%9A%E0%B8%99-test-network-af9b5629fa2d">วิธีการรับ ETH สำหรับใช้ test และ deploy บน test network</a> was originally published in <a href="https://medium.com/under-ledger">Under Ledger</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Function Visibility ในภาษา solidity]]></title>
            <link>https://medium.com/under-ledger/access-modifiers-%E0%B9%83%E0%B8%99%E0%B8%A0%E0%B8%B2%E0%B8%A9%E0%B8%B2-solidity-34389fc77308?source=rss-8aea729b6613------2</link>
            <guid isPermaLink="false">https://medium.com/p/34389fc77308</guid>
            <category><![CDATA[solidity]]></category>
            <dc:creator><![CDATA[Thammanoon Karnchuchor]]></dc:creator>
            <pubDate>Thu, 10 Mar 2022 08:14:29 GMT</pubDate>
            <atom:updated>2022-03-14T02:53:49.855Z</atom:updated>
            <content:encoded><![CDATA[<p>function ในภาษา solidity สามารถประกาศการเข้าถึง function ในแต่ละ contract ได้โดยประกาศ visibility โดยมี 4 ประเภท คือ [public, internal, external, private]</p><p>ตัวอย่างการประกาศ function visibility</p><blockquote>function functionName() public { … }</blockquote><p><strong>public</strong> — function ที่ถูกสร้างขึ้นหากไม่มีการประกาศ visibility จะเป็น public โดย default สามารถเข้าถึง function ได้จาก</p><ul><li>contract ปัจจุบัน</li><li>contract ที่ทำการ inherit จาก contract ปัจจุบัน</li><li>contract ภายนอก</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/466/1*s4oZZwrb1JFTQ509nYI7GA.jpeg" /></figure><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1bf4b2d329ff5a56bcbf7773f4b86993/href">https://medium.com/media/1bf4b2d329ff5a56bcbf7773f4b86993/href</a></iframe><p><strong>internal </strong>— สามารถเข้าถึง function ได้จาก</p><ul><li>contract ปัจจุบัน</li><li>contract ที่ทำการ inherit จาก contract ปัจจุบัน</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/466/1*_k47pq7s7JnKHhS7e6lxoA.jpeg" /></figure><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bcd4535ac1d886781f70f40d7d81ff4e/href">https://medium.com/media/bcd4535ac1d886781f70f40d7d81ff4e/href</a></iframe><p><strong>external </strong>— สามารถเข้าถึง function ได้จาก</p><ul><li>contract ปัจจุบัน</li><li>contract ภายนอก</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/466/1*6oNaEUsDQ0v5JfS2-IhZBg.jpeg" /></figure><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/423d057e84ee54efc9778639f859027f/href">https://medium.com/media/423d057e84ee54efc9778639f859027f/href</a></iframe><p><strong>private </strong>— สามารถเข้าถึงได้เฉพาะภายใน contract ปัจจุบันเท่านั้น</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/466/1*EqE7S9AE6XIsB0OSpGI8jg.jpeg" /></figure><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/af02e0682b80b48f72f6ee2c51789c1a/href">https://medium.com/media/af02e0682b80b48f72f6ee2c51789c1a/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34389fc77308" width="1" height="1" alt=""><hr><p><a href="https://medium.com/under-ledger/access-modifiers-%E0%B9%83%E0%B8%99%E0%B8%A0%E0%B8%B2%E0%B8%A9%E0%B8%B2-solidity-34389fc77308">Function Visibility ในภาษา solidity</a> was originally published in <a href="https://medium.com/under-ledger">Under Ledger</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>