Skip to content

Add mainnet USDC paymaster workflow - #107

Merged
Pray4Lovee merged 2 commits into
mainfrom
codexadd-usdc-transaction-paymaster-flow
Sep 28, 2025
Merged

Pray4Lovee merged 2 commits into
mainfrom
codexadd-usdc-transaction-paymaster-flow

Conversation

@Pray4Lovee

Copy link
Copy Markdown
Owner

Summary

  • replace the placeholder GitHub Actions workflow with the full EVM Mainnet USDC paymaster transaction flow
  • add validation, simulation, and broadcast steps for transferWithAuthorization transactions including RPC selection and input normalization

Testing

  • not run (workflow change)

https://chatgpt.com/codex/tasks/task_e_68cdbfe942508322bf7167b59505d467

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting

Comment on lines +410 to +414
balance_raw="$(cast call "$usdc_contract" "balanceOf(address)(uint256)" "$FROM_ADDRESS" --rpc-url "$ETH_RPC_URL" | tr -d '\r\n')"
if ! mapfile -t balance_info < <(python - "$balance_raw" "$USDC_AMOUNT" <<'PY'
import sys
from decimal import Decimal
balance = int(sys.argv[1])

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P1] Parse on-chain balance as hex before comparison

The preflight balance check reads balanceOf via cast call and passes the raw string directly into int(). cast call returns uint256 values in hexadecimal form (e.g. 0x00…), so int(sys.argv[1]) raises ValueError even for valid balances. The failure is caught by the surrounding mapfile and reported as an insufficient balance, which causes every workflow run to abort before simulation. Convert the response from hex (e.g. int(sys.argv[1], 16) or cast … --format-dec) before performing the comparison.

Useful? React with 👍 / 👎.

@Pray4Lovee
Pray4Lovee merged commit d2689fa into main Sep 28, 2025
@Pray4Lovee
Pray4Lovee deleted the codexadd-usdc-transaction-paymaster-flow branch September 28, 2025 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant