<?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: Shreyash Tripathi</title>
    <description>The latest articles on Developers Forum for XinFin XDC Network by Shreyash Tripathi (@iamshreyashh).</description>
    <link>https://www.xdc.dev/iamshreyashh</link>
    <image>
      <url>https://www.xdc.dev/images/2a1meNa4QL62eVSiqS-iSMJGej8Awiy5OkPwsFTr-jA/rs:fill:90:90/mb:500000/ar:1/aHR0cHM6Ly93d3cu/eGRjLmRldi91cGxv/YWRzL3VzZXIvcHJv/ZmlsZV9pbWFnZS8z/MjMyL2NhNmE4M2Rm/LTJiZDktNDUyNy1h/ODI3LTRkNzA0MzYx/NTgyNi5qcGVn</url>
      <title>Developers Forum for XinFin XDC Network: Shreyash Tripathi</title>
      <link>https://www.xdc.dev/iamshreyashh</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://www.xdc.dev/feed/iamshreyashh"/>
    <language>en</language>
    <item>
      <title>failing while calling a function in smart contract using web3.js</title>
      <dc:creator>Shreyash Tripathi</dc:creator>
      <pubDate>Thu, 25 Jul 2024 11:23:14 +0000</pubDate>
      <link>https://www.xdc.dev/iamshreyashh/failing-while-calling-a-function-in-smart-contract-using-web3js-2ogk</link>
      <guid>https://www.xdc.dev/iamshreyashh/failing-while-calling-a-function-in-smart-contract-using-web3js-2ogk</guid>
      <description>&lt;p&gt;Hello, &lt;/p&gt;

&lt;p&gt;so i have been trying to hit a function in the smart contract deployed on the XDC mainnet using the web3.js for my dapp " Edubuk", here is what i am trying to build and do.&lt;/p&gt;

&lt;p&gt;I am tring to register a file on IPFS and then catch the CID to register it in the next step, automated in JS code (backend), on the blockchain using the smart contract function. When I hit the register button it prmpts the metamask and the contract interaction is done successfully txn hash is also received. But the the backend crashes and stops with error of " Error while executing a function inside the smart contract". Inside the smart contract we did the transaction and the function ran smoothly on the remix IDE as the file gets successfully registered and we can verify the file also in the blockchain. Also I would like to add that from the backend the files are successfully added in the IPFS data base and we can see their CID as well and fetched at out terminal too. I am now struck at this issue of why this error is persistent and what can be possible error.&lt;/p&gt;

&lt;p&gt;I tried to increase the gasPrice to : 12500000000 wie.&lt;/p&gt;

&lt;p&gt;If anyone can suggest the possible error and also you can take reference from the product demo video below along the error.&lt;/p&gt;

&lt;p&gt;Video link: &lt;a href="https://drive.google.com/file/d/1EQMO6RASh-OX3-SmY8VRdwLNnM5AKG1p/view?usp=sharing"&gt;https://drive.google.com/file/d/1EQMO6RASh-OX3-SmY8VRdwLNnM5AKG1p/view?usp=sharing&lt;/a&gt; ( refer to last 10:52 to 20:37 )&lt;/p&gt;

&lt;p&gt;I can share the functions also if needed.&lt;/p&gt;

&lt;p&gt;You can happily connect with me on: &lt;a href="mailto:shreyash@edubukeseal.org"&gt;shreyash@edubukeseal.org&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br&gt;
Shreyash&lt;/p&gt;

</description>
      <category>xdc</category>
      <category>dapp</category>
      <category>wip</category>
    </item>
  </channel>
</rss>
