Skip to content

Conversation

@0xRAG
Copy link
Contributor

@0xRAG 0xRAG commented Sep 5, 2025

Description

This PR updates example scripts across the repository to improve consistency and usability:

  1. Fixed file paths in usage comments to reflect the actual directory structure
  2. Removed duplicate usage comments and shebang lines from Python examples
  3. Updated TypeScript smart account examples to use getOrCreateAccount() instead of generating random private keys, making examples more consistent and easier to follow

These changes ensure that all examples can be run directly from their locations with the correct paths and follow consistent patterns.

@cb-heimdall
Copy link

cb-heimdall commented Sep 5, 2025

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

@0xRAG
Copy link
Contributor Author

0xRAG commented Sep 5, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@0xRAG 0xRAG marked this pull request as ready for review September 5, 2025 22:17
@0xRAG 0xRAG requested a review from jazz-cb September 5, 2025 22:17
@@ -1,6 +1,4 @@
# Usage: uv run python evm/swaps/account.quote_swap.py
Copy link
Contributor

Choose a reason for hiding this comment

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

why do we have account. prefix on some examples ?

const owner = privateKeyToAccount(privateKey);
const owner = await cdp.evm.getOrCreateAccount({ name: "SmartAccountOwner" });

let smartAccount = await cdp.evm.createSmartAccount({ owner });
Copy link
Contributor

Choose a reason for hiding this comment

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

also set a known name?

const owner = await cdp.evm.getOrCreateSmartAccount({ name: "SmartAccount", owner });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants