Skip to content

Commit

Permalink
testcase: update gov tx for cancelsoftwareupgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
fly33499 committed Oct 18, 2021
1 parent 3619989 commit a464745
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions test/16.gov_tx.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ describe.skip('[16. Gov Tx Test]', () => {
const aliceWallet = await firma.Wallet.fromMnemonic(aliceMnemonic);

const proposer = await aliceWallet.getAddress();
const initialDepositFCT = 1000;
const initialDepositFCT = 10000;
const title = "Software Upgrade proposal1";
const description = "This is a software upgrade proposal";

Expand All @@ -83,10 +83,24 @@ describe.skip('[16. Gov Tx Test]', () => {

var result = await firma.Gov.submitSoftwareUpgradeProposalByHeight(aliceWallet, title, description, initialDepositFCT, proposer, upgradeName, upgradeHeight);

//console.log(result);
console.log(result);
expect(result.code).to.equal(0);
});

it('SubmitCancelSoftwareUpgradeProposal Test', async () => {

const aliceWallet = await firma.Wallet.fromMnemonic(aliceMnemonic);

const proposer = await aliceWallet.getAddress();
const initialDepositFCT = 1000;
const title = "Software Upgrade proposal1";
const description = "This is a software upgrade proposal";

var result = await firma.Gov.submitCancelSoftwareUpgradeProposal(aliceWallet, title, description, initialDepositFCT, proposer);

console.log(result);
expect(result.code).to.equal(0);
});

// NOTICE: time-based upgrades have been deprecated in the SDK: invalid request
/*it.skip('SubmitSoftwareUpgradeProposalByTime Test', async () => {
Expand Down

0 comments on commit a464745

Please sign in to comment.