Skip to content

fix(alpha): add missing chainId to inference transaction in _send_tx_with_revert_handling#217

Open
amathxbt wants to merge 2 commits intoOpenGradient:mainfrom
amathxbt:fix/missing-chain-id-in-inference-tx
Open

fix(alpha): add missing chainId to inference transaction in _send_tx_with_revert_handling#217
amathxbt wants to merge 2 commits intoOpenGradient:mainfrom
amathxbt:fix/missing-chain-id-in-inference-tx

Conversation

@amathxbt
Copy link
Copy Markdown
Contributor

Bug

builds a transaction without :

This is the helper that backs **** — the primary on-chain model inference call. Without :

  • may sign the transaction without EIP-155 replay protection
  • The node rejects it with
  • Users cannot perform any on-chain inference

Every other call in already includes :

  • → line 311 ✅
  • → line 363 ✅
  • → line 428 ✅

Fix

Add the missing field to the one place it was omitted:

Test

Added in to assert that is present in the transaction parameters and matches .

Verification

All other build_transaction() calls in alpha.py include chainId, but
_send_tx_with_revert_handling (used by infer()) was missing it.
Without chainId, web3.py signs transactions without EIP-155 replay
protection, causing them to be rejected on OpenGradient's network.
Adds TestAlphaInferenceChainId.test_send_tx_includes_chain_id to
guard against regression of the missing chainId bug in
_send_tx_with_revert_handling.
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