-
Notifications
You must be signed in to change notification settings - Fork 2
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
XRP testnet #1
base: main
Are you sure you want to change the base?
XRP testnet #1
Conversation
Please send me some testnet usdt |
Added ability to run on XRP Testnet |
@@ -5,11 +5,17 @@ import * as fs from 'fs'; | |||
import * as path from 'path' | |||
|
|||
|
|||
require('dotenv').config(); |
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 this was removed?
Without it the .env params won't be loaded into 'process.env' unless you defined these in the system environment beforehand.
const SERVER_WSS: string = "wss://xrplcluster.com"; // change to "wss://testnet.xrpl-labs.com" if using XRP Testnet asset | ||
|
||
//Enter the domain name as a string, for example: test.com | ||
const DOMAIN: string = ""; |
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 DOMAIN was added here?
Domain field is not set by default for any newly created accounts in Fireblocks hence it is redundant here.
"SetFlag": 1 // --> Enable dest tag required | ||
//"ClearFlag": 1 // --> Disable test tag required (remove SetFlag in this case) | ||
} | ||
|
||
await xrp_signer.signAndSubmitTransaction( | ||
api, | ||
fireblocksApiClient, | ||
Number(VAULT_ACCOUNT_ID), |
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.
Reading from .env will result in vault account id as string hence it throws an error here. Casting is required.
If we want to remove the casting to Number, we should change the expected type in signAndSubmitTransaction and remove the toString() within the Fireblocks transaction payload.
No description provided.