Merge pull request 'fix: fix: attemptStake helper produces /stakestake invalid route (#1168)' (#1171) from fix/issue-1168 into master
This commit is contained in:
commit
aacb8be7c0
1 changed files with 2 additions and 2 deletions
|
|
@ -511,8 +511,8 @@ export async function attemptStake(
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
console.log(`[${personaName}] Attempting to stake ${amount} KRK at tax rate ${taxRateIndex}%...`);
|
console.log(`[${personaName}] Attempting to stake ${amount} KRK at tax rate ${taxRateIndex}%...`);
|
||||||
|
|
||||||
const baseUrl = page.url().split('#')[0];
|
const origin = new URL(page.url()).origin;
|
||||||
await page.goto(`${baseUrl}stake`);
|
await page.goto(`${origin}/stake`);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// Wait for stake form to fully load
|
// Wait for stake form to fully load
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue