In fact, I deployed contracts to XDC chain by truffle and hardhat successfully in early august. But I encounter the same error when I use truffle or hardhat now. If the jsonrpc of xdc chain is not modifed, maybe you can try to downgrade truffle.
I found the reason why I deployed contracts with hardhat and truffle successfully in July. The prefix of address is still 0x in Jul, but it is changed to xdc in August. I opened 2 issues on hardhat and truffle today. Maybe they have a solution.
In fact, I deployed contracts to XDC chain by truffle and hardhat successfully in early august. But I encounter the same error when I use truffle or hardhat now. If the jsonrpc of xdc chain is not modifed, maybe you can try to downgrade truffle.
I found the reason why I deployed contracts with hardhat and truffle successfully in July. The prefix of address is still 0x in Jul, but it is changed to xdc in August. I opened 2 issues on hardhat and truffle today. Maybe they have a solution.
great to hear!, sure will give a try.. For now, I have used evm compatible rpc to go with 0x :)