<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Developers Forum for XinFin XDC Network: Chris Buonocore</title>
    <description>The latest articles on Developers Forum for XinFin XDC Network by Chris Buonocore (@cbonoz).</description>
    <link>https://www.xdc.dev/cbonoz</link>
    <image>
      <url>https://www.xdc.dev/images/jJVN1dkNvCxOxeHzBSQ51Z3EDQ3QmsrNDjsnBh0b-Tk/rs:fill:90:90/mb:500000/ar:1/aHR0cHM6Ly93d3cu/eGRjLmRldi91cGxv/YWRzL3VzZXIvcHJv/ZmlsZV9pbWFnZS85/My84M2M3YTU2NS00/YjU1LTRhZGQtOWNh/My00OGE0OTE5Y2U3/ZjEucG5n</url>
      <title>Developers Forum for XinFin XDC Network: Chris Buonocore</title>
      <link>https://www.xdc.dev/cbonoz</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://www.xdc.dev/feed/cbonoz"/>
    <language>en</language>
    <item>
      <title>[Solved]Debugging invalid address using ethers deploy / openzepplin</title>
      <dc:creator>Chris Buonocore</dc:creator>
      <pubDate>Sat, 03 Dec 2022 03:59:46 +0000</pubDate>
      <link>https://www.xdc.dev/cbonoz/debugging-invalid-address-using-ethers-deploy-openzepplin-gh7</link>
      <guid>https://www.xdc.dev/cbonoz/debugging-invalid-address-using-ethers-deploy-openzepplin-gh7</guid>
      <description>&lt;p&gt;Hey there,&lt;/p&gt;

&lt;p&gt;Participating in the xdc fall 2022 hackathon and running into an error with the ethers deployer with a successfully compiled contract abi. &lt;/p&gt;

&lt;p&gt;Deploy snippet:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.xdc.dev/images/LmcgBPY9vijaEVi0I2rhzo85sqFwnupYIHIY2odG-UI/w:880/mb:500000/ar:1/aHR0cHM6Ly93d3cu/eGRjLmRldi91cGxv/YWRzL2FydGljbGVz/LzJ3anhtazJya2dw/NzY5cDZlbHAwLnBu/Zw" class="article-body-image-wrapper"&gt;&lt;img src="https://www.xdc.dev/images/LmcgBPY9vijaEVi0I2rhzo85sqFwnupYIHIY2odG-UI/w:880/mb:500000/ar:1/aHR0cHM6Ly93d3cu/eGRjLmRldi91cGxv/YWRzL2FydGljbGVz/LzJ3anhtazJya2dw/NzY5cDZlbHAwLnBu/Zw" alt="Image description" width="575" height="322"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://www.xdc.dev/images/jVCKvmAiDHn5bk_R6ClEqWO-3jvFZqxtQWbNq23CTIw/w:880/mb:500000/ar:1/aHR0cHM6Ly93d3cu/eGRjLmRldi91cGxv/YWRzL2FydGljbGVz/LzY3aG4xNXlxYjJp/NGFxdjhxdmZvLnBu/Zw" class="article-body-image-wrapper"&gt;&lt;img src="https://www.xdc.dev/images/jVCKvmAiDHn5bk_R6ClEqWO-3jvFZqxtQWbNq23CTIw/w:880/mb:500000/ar:1/aHR0cHM6Ly93d3cu/eGRjLmRldi91cGxv/YWRzL2FydGljbGVz/LzY3aG4xNXlxYjJp/NGFxdjhxdmZvLnBu/Zw" alt="Image description" width="478" height="107"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Awaiting this yields the error below:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.xdc.dev/images/H3jSdnA4VfW7-VvOqHsW1kIMHuPFJ2qYSOyl_vwu0U0/w:880/mb:500000/ar:1/aHR0cHM6Ly93d3cu/eGRjLmRldi91cGxv/YWRzL2FydGljbGVz/L2pmNjh0ZWwzbzhl/ZDRjdGRreTFzLnBu/Zw" class="article-body-image-wrapper"&gt;&lt;img src="https://www.xdc.dev/images/H3jSdnA4VfW7-VvOqHsW1kIMHuPFJ2qYSOyl_vwu0U0/w:880/mb:500000/ar:1/aHR0cHM6Ly93d3cu/eGRjLmRldi91cGxv/YWRzL2FydGljbGVz/L2pmNjh0ZWwzbzhl/ZDRjdGRreTFzLnBu/Zw" alt="Image description" width="687" height="192"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The contract extends Ownable from openzepplin&lt;/p&gt;

&lt;p&gt;Is the owner address throwing an error with the xdc prefix while the ethers provider expects the 0x prefix? Any advice how to debug?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Error interacting with a XDC contract from ethers.js</title>
      <dc:creator>Chris Buonocore</dc:creator>
      <pubDate>Thu, 07 Jul 2022 16:27:51 +0000</pubDate>
      <link>https://www.xdc.dev/cbonoz/interacting-with-a-xdc-contract-from-ethersjs-26nh</link>
      <guid>https://www.xdc.dev/cbonoz/interacting-with-a-xdc-contract-from-ethersjs-26nh</guid>
      <description>&lt;p&gt;Hey All,&lt;/p&gt;

&lt;p&gt;Just started working with XDC Testnet and trying to interact with a deployed contract here using ethers.js&lt;/p&gt;

&lt;p&gt;&lt;a href="https://explorer.apothem.network/address/xdcdb73769d3132dcde68d27b91e2dd278bd6be917a"&gt;https://explorer.apothem.network/address/xdcdb73769d3132dcde68d27b91e2dd278bd6be917a&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Was able to successfully deploy this contract above, however when I interact with it via ethers I get the below uncaught exception: &lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.xdc.dev/images/aVPdU9A35FCYm_v5FBFLPVkq_niOvLbb864TlFrew1M/w:880/mb:500000/ar:1/aHR0cHM6Ly93d3cu/eGRjLmRldi91cGxv/YWRzL2FydGljbGVz/L3N6bGk2OG96ZWpo/ZHVlOTltdng1LnBu/Zw" class="article-body-image-wrapper"&gt;&lt;img src="https://www.xdc.dev/images/aVPdU9A35FCYm_v5FBFLPVkq_niOvLbb864TlFrew1M/w:880/mb:500000/ar:1/aHR0cHM6Ly93d3cu/eGRjLmRldi91cGxv/YWRzL2FydGljbGVz/L3N6bGk2OG96ZWpo/ZHVlOTltdng1LnBu/Zw" alt="Image description" width="442" height="192"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;From a quick search, looks like the ENS error is typically associated with a unparseable address, might be the xdc prefix working with ethers?&lt;/p&gt;

&lt;p&gt;Could also share code, but using &lt;code&gt;new ethers.Contract(...)&lt;/code&gt; with this address. Appreciate any advice/help!&lt;/p&gt;

</description>
      <category>ethers</category>
      <category>xdc</category>
      <category>testnet</category>
    </item>
  </channel>
</rss>
