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

chore(coins): add broadcast for sol txs in examples #5332

Merged
merged 1 commit into from
Jan 21, 2025
Merged

Conversation

ranger2255
Copy link
Contributor

Ticket: COIN-1879

@ranger2255 ranger2255 marked this pull request as ready for review January 6, 2025 03:35
@ranger2255 ranger2255 requested review from a team as code owners January 6, 2025 03:35
);
} else {
console.log('Requesting AirDrop...');
const airdrop = await connection.requestAirdrop(mainAccountPublicKey, 1 * LAMPORTS_PER_SOL);
Copy link
Contributor

Choose a reason for hiding this comment

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

This is only applicable for test but not on prod. This should be handle properly if someone want to use script for mainnet account.

Copy link
Contributor

Choose a reason for hiding this comment

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

+1

Copy link
Contributor

Choose a reason for hiding this comment

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

Honestly, I would just remove this from the script and create a separate example for this.

@ranger2255 ranger2255 requested a review from mukeshsp January 7, 2025 05:47
@@ -34,50 +34,53 @@ const accountsRequired = 5

// For BitGo Test use solana 'devnet' network
// For BitGo Prod use solana 'mainnet-beta' network
const network: 'mainnet-beta' | 'devnet' = 'devnet'
const network: 'mainnet-beta' | 'devnet' | 'testnet' = 'devnet';
Copy link
Contributor

Choose a reason for hiding this comment

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

Why did you add testnet to the networks here, do we support testnet?

);
} else {
console.log('Requesting AirDrop...');
const airdrop = await connection.requestAirdrop(mainAccountPublicKey, 1 * LAMPORTS_PER_SOL);
Copy link
Contributor

Choose a reason for hiding this comment

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

+1

);
} else {
console.log('Requesting AirDrop...');
const airdrop = await connection.requestAirdrop(mainAccountPublicKey, 1 * LAMPORTS_PER_SOL);
Copy link
Contributor

Choose a reason for hiding this comment

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

Honestly, I would just remove this from the script and create a separate example for this.

}
],
"lastScanIndex": 2
}
Copy link
Contributor

Choose a reason for hiding this comment

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

This file needs a new line at the end.

@ranger2255 ranger2255 merged commit 9427137 into master Jan 21, 2025
6 checks passed
@ranger2255 ranger2255 deleted the COIN-1879 branch January 21, 2025 03:45
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.

3 participants