-
Notifications
You must be signed in to change notification settings - Fork 283
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
Conversation
); | ||
} else { | ||
console.log('Requesting AirDrop...'); | ||
const airdrop = await connection.requestAirdrop(mainAccountPublicKey, 1 * LAMPORTS_PER_SOL); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
There was a problem hiding this comment.
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.
@@ -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'; |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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 | ||
} |
There was a problem hiding this comment.
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.
Ticket: COIN-1879