@@ -715,15 +715,23 @@ const config: HardhatUserConfig = {
715715 ]
716716 } ,
717717 thbarevm : {
718- url : 'https://testnet.hashio.io/api' ,
718+ // Hashio relay (0.77.1) rejects contract-creation eth_estimateGas when a
719+ // `from` field is present (returns INSUFFICIENT_TX_FEE), which breaks the
720+ // deploy scripts. Thirdweb's Hedera gateway handles this correctly.
721+ // Keep Hashio/HashScan for contract verification only.
722+ url : 'https://296.rpc.thirdweb.com' ,
719723 accounts : [
720724 `${ PRIVATE_KEY_FOR_V4_CONTRACT_DEPLOYMENT } ` ,
721725 `${ PLACEHOLDER_KEY } ` ,
722726 `${ PRIVATE_KEY_FOR_BATCHER_CONTRACT_DEPLOYMENT } `
723727 ]
724728 } ,
725729 hbarevm : {
726- url : 'https://mainnet.hashio.io/api' ,
730+ // Hashio relay (0.77.1) rejects contract-creation eth_estimateGas when a
731+ // `from` field is present (returns INSUFFICIENT_TX_FEE), which breaks the
732+ // deploy scripts. Thirdweb's Hedera gateway handles this correctly.
733+ // Keep Hashio/HashScan for contract verification only.
734+ url : 'https://295.rpc.thirdweb.com' ,
727735 accounts : [
728736 `${ PRIVATE_KEY_FOR_V4_CONTRACT_DEPLOYMENT } ` ,
729737 `${ PLACEHOLDER_KEY } ` ,
@@ -2041,14 +2049,18 @@ const config: HardhatUserConfig = {
20412049} ;
20422050
20432051export const sourcifyNetworks = {
2044- // Hedera networks use HashScan Sourcify
2052+ // Hedera verification is handled by Sourcify (chainId 295 mainnet / 296 testnet).
2053+ // The legacy HashScan hosts (server-verify/repository-verify.hashscan.io) are
2054+ // decommissioned and now return HTML 404s, which breaks verification with
2055+ // "Unexpected token '<' ... is not valid JSON". Use the official Sourcify server.
2056+ // HashScan automatically shows the verified badge once Sourcify has the contract.
20452057 [ CHAIN_IDS . HBAREVM ] : {
2046- apiUrl : 'https://server-verify.hashscan.io ' ,
2047- browserUrl : 'https://repository-verify.hashscan.io '
2058+ apiUrl : 'https://sourcify.dev/server ' ,
2059+ browserUrl : 'https://repo.sourcify.dev '
20482060 } ,
20492061 [ CHAIN_IDS . HBAREVM_TESTNET ] : {
2050- apiUrl : 'https://server-verify.hashscan.io ' ,
2051- browserUrl : 'https://repository-verify.hashscan.io '
2062+ apiUrl : 'https://sourcify.dev/server ' ,
2063+ browserUrl : 'https://repo.sourcify.dev '
20522064 }
20532065} ;
20542066
0 commit comments