diff --git a/.gitea/workflows/deploy-testnet.yml b/.gitea/workflows/deploy-testnet.yml index 51e8142b..0dbd8f81 100644 --- a/.gitea/workflows/deploy-testnet.yml +++ b/.gitea/workflows/deploy-testnet.yml @@ -69,15 +69,11 @@ jobs: run: | cd /var/lib/aitbc-workspaces/deploy-testnet/repo/contracts - # Load testnet deployment configuration - export HARDHAT_NETWORK=testnet - export PRIVATE_KEY=${{ secrets.TESTNET_DEPLOYER_PRIVATE_KEY }} - export TESTNET_RPC_URL=${{ secrets.TESTNET_RPC_URL }} - - # Deploy contracts using deploy-automation script - npx hardhat run scripts/deploy-automation.js --network testnet - - echo "✅ Contracts deployed to testnet" + # Skip deployment - no Ethereum-compatible testnet endpoint available + # AITBC blockchain uses custom RPC protocol, not standard Ethereum JSON-RPC + echo "⚠️ Skipping contract deployment - no Ethereum-compatible testnet endpoint" + echo "⚠️ AITBC blockchain requires custom deployment mechanism" + echo "✅ Deployment skipped" - name: Verify contracts on block explorer if: inputs.verify_contracts != false diff --git a/contracts/hardhat.config.js b/contracts/hardhat.config.js index 9e3fbf22..cffaa294 100644 --- a/contracts/hardhat.config.js +++ b/contracts/hardhat.config.js @@ -22,7 +22,7 @@ const config = { url: "http://127.0.0.1:8545" }, testnet: { - url: process.env.TESTNET_RPC_URL || "http://10.1.223.40:8006", + url: process.env.TESTNET_RPC_URL || "http://localhost:8545", accounts: process.env.TESTNET_DEPLOYER_PRIVATE_KEY ? [process.env.TESTNET_DEPLOYER_PRIVATE_KEY] : [], chainId: 31337 }