test: minor bug fix, add comment

This commit is contained in:
Dexter 2022-06-28 11:38:15 +01:00
parent 7729bcf5f5
commit 21f53cd6b9

View File

@ -12,10 +12,12 @@ const vegaWalletPassphrase = Cypress.env('VEGA_WALLET_PASSPHRASE');
const getAccount = (number = 0) => `m/44'/60'/0'/0/${number}`; const getAccount = (number = 0) => `m/44'/60'/0'/0/${number}`;
// TODO remove, expected values: "http://localhost:8545/"" & "ozone access unlock valid olympic save include omit supply green clown session"
cy.log( cy.log(
process.env.NX_ETHEREUM_PROVIDER_URL, process.env.NX_ETHEREUM_PROVIDER_URL,
process.env.NX_ETH_WALLET_MNEMONIC process.env.NX_ETH_WALLET_MNEMONIC
); );
const provider = new ethers.providers.JsonRpcProvider({ const provider = new ethers.providers.JsonRpcProvider({
url: process.env.NX_ETHEREUM_PROVIDER_URL, url: process.env.NX_ETHEREUM_PROVIDER_URL,
}); });
@ -33,7 +35,7 @@ Cypress.Commands.add('vega_wallet_teardown', function () {
return vesting.stakeBalance(ethPubKey, vegaPubKey).then((amount) => { return vesting.stakeBalance(ethPubKey, vegaPubKey).then((amount) => {
cy.log(amount); cy.log(amount);
vesting.removeStake(amount, vegaPubKey); return vesting.removeStake(amount, vegaPubKey);
}); });
}); });