Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix examples #101

Merged
merged 1 commit into from
Oct 19, 2023
Merged

Fix examples #101

merged 1 commit into from
Oct 19, 2023

Conversation

0xmaayan
Copy link
Collaborator

Description

Test Plan

Related Links

@@ -32,7 +32,8 @@ const example = async () => {
console.log("This example will create two accounts (Alice and Bob), fund them, and transfer between them.");

// Setup the client
const sdk = new aptos.Aptos();
const config = new aptos.AptosConfig({ network: aptos.Network.DEVNET });
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this is taking in the obj as param anymore? And default is devnet already?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It does and always is. This is a configuration object.
Yes devnet is default but i think it helps to show the usage of the config option

Copy link
Contributor

Choose a reason for hiding this comment

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

ohh I see, so its taking in AptosSettings as an object.

@0xmaayan 0xmaayan merged commit dae32a2 into main Oct 19, 2023
4 checks passed
@0xmaayan 0xmaayan deleted the examples_fix branch October 19, 2023 01:36
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.

2 participants