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

XRP testnet #1

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

danielkohatfireblocks
Copy link

No description provided.

@Muzair217
Copy link

Please send me some testnet usdt

@danielkohatfireblocks
Copy link
Author

Added ability to run on XRP Testnet

@@ -5,11 +5,17 @@ import * as fs from 'fs';
import * as path from 'path'


require('dotenv').config();
Copy link
Collaborator

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 = "";
Copy link
Collaborator

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),
Copy link
Collaborator

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.

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