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

Add testnet support for transaction links, corrected whatsonchain variable name #263

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

echennells
Copy link
Contributor

Testnet transaction history was linking to the normal whatsonchain.com site not the test.whatsonchain.com site.

Also corrected variables to whatsonchain.

@@ -132,6 +132,7 @@ export const TxHistory = (props: TxHistoryProps) => {
const itemsPerPage = 25;
const { gorillaPoolService, chromeStorageService } = useServiceContext();
const [expandedRows, setExpandedRows] = useState<Set<string>>(new Set());
const isTestnet = chromeStorageService.getNetwork() === 'testnet';
Copy link
Collaborator

Choose a reason for hiding this comment

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

Instead of 'testnet' let's use the enum for consistency...

NetWork.Testnet imported from 'yours-wallet-provider'

Copy link
Collaborator

Choose a reason for hiding this comment

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

We're pushing a new update so will address this myself with new changes.

@danwag06 danwag06 merged commit d5a7b51 into yours-org:main Jan 9, 2025
1 check passed
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