Skip to content

Conversation

@kvinwang
Copy link
Collaborator

Summary

  • Add retry with linear back-off (5 attempts, 2s/4s/6s/8s/10s) to verifyDeployment() in kms/auth-eth/lib/deployment-helpers.ts
  • Public RPC endpoints may return stale data right after a transaction is mined, causing getCode() to return '0x' and the deploy script to fail with "Contract deployment failed - no code at address" even though the contract was deployed successfully
  • This was observed during testing with https://sepolia.base.org — the contract was on-chain but the script errored out

Test plan

  • Tested manually: deployed KMS contract on Base Sepolia via npx hardhat kms:deploy --with-app-impl --network custom, previously failed with the race condition error, now should retry and succeed

Public RPC endpoints may return stale data right after a transaction is
mined, causing getCode() to return '0x' and the deploy script to fail
with "Contract deployment failed - no code at address" even though the
contract was deployed successfully.

Add retry with linear back-off (5 attempts, 2s/4s/6s/8s/10s) to
verifyDeployment() so deployments on public RPCs succeed without manual
intervention.
@kvinwang kvinwang enabled auto-merge February 13, 2026 07:59
@kvinwang kvinwang merged commit 1f1138b into Dstack-TEE:master Feb 13, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant