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

Enhancement: Removing more unused steps #637

Merged
merged 1 commit into from
Aug 31, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 0 additions & 77 deletions tests/cucumber/steps/steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,29 +258,6 @@ module.exports = function getSteps(options) {
this.pk = algosdk.multisigAddress(this.msig);
});

When('I create the payment transaction', function () {
this.txn = {
from: this.pk,
to: this.to,
fee: this.fee,
firstRound: this.fv,
lastRound: this.lv,
genesisHash: this.gh,
};
if (this.gen) {
this.txn.genesisID = this.gen;
}
if (this.close) {
this.txn.closeRemainderTo = this.close;
}
if (this.note) {
this.txn.note = this.note;
}
if (this.amt) {
this.txn.amount = this.amt;
}
});

When('I sign the transaction with the private key', function () {
const obj = algosdk.signTransaction(this.txn, this.sk);
this.stx = obj.blob;
Expand Down Expand Up @@ -980,60 +957,6 @@ module.exports = function getSteps(options) {
return this.kcl.deleteKey(this.handle, this.wallet_pswd, this.pk);
});

Given(
'key registration transaction parameters {int} {int} {int} {string} {string} {string} {int} {int} {int} {string} {string}',
function (
fee,
fv,
lv,
gh,
votekey,
selkey,
votefst,
votelst,
votekd,
gen,
note
) {
this.fee = parseInt(fee);
this.fv = parseInt(fv);
this.lv = parseInt(lv);
this.gh = gh;
if (gen !== 'none') {
this.gen = gen;
}
if (note !== 'none') {
this.note = makeUint8Array(Buffer.from(note, 'base64'));
}
this.votekey = votekey;
this.selkey = selkey;
this.votefst = votefst;
this.votelst = votelst;
this.votekd = votekd;
}
);

When('I create the key registration transaction', function () {
this.txn = {
fee: this.fee,
firstRound: this.fv,
lastRound: this.lv,
genesisHash: this.gh,
voteKey: this.votekey,
selectionKey: this.selkey,
voteFirst: this.votefst,
voteLast: this.votelst,
voteKeyDilution: this.votekd,
type: 'keyreg',
};
if (this.gen) {
this.txn.genesisID = this.gen;
}
if (this.note) {
this.txn.note = this.note;
}
});

Given(
'default V2 key registration transaction {string}',
async function (type) {
Expand Down