Skip to content

Commit

Permalink
updated navigation history
Browse files Browse the repository at this point in the history
  • Loading branch information
deblanco committed Aug 16, 2019
1 parent 8b20757 commit 0430a1c
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ export default {
this.$store.dispatch("fetchSSPerInfo", address);
},
handleRouteBack() {
this.$router.go(-2);
this.$router.go(-1);
},
newStakeAuthorization() {
this.$router.push({ name: "NewAuthorizationSesameseed" });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ import SignSendTx from "../../../Common/SignSendTx";
import { mapState } from "vuex";
import { GAS_LIMIT, GAS_PRICE } from "../../../../../core/consts";
import { Crypto, TransactionBuilder, utils } from "ontology-ts-sdk";
import { CONTRACT_HASH } from './SesameseedVars'
import { CONTRACT_HASH } from "./SesameseedVars";
export default {
name: "NewAuthorizationSesameseed",
Expand All @@ -111,7 +111,7 @@ export default {
},
methods: {
handleRouteBack() {
this.$router.go(-2);
this.$router.go(-1);
},
handleChange() {
if (!this.units || !varifyPositiveInt(this.units)) {
Expand Down Expand Up @@ -158,32 +158,32 @@ export default {
}
const userAddr = new Crypto.Address(this.stakeWallet.address);
const tx = TransactionBuilder.makeTransactionsByJson({
action: 'invoke',
params: {
login: true,
message: 'Sesameseed Vote',
invokeConfig: {
contractHash: CONTRACT_HASH,
functions: [
{
operation: 'Vote',
args: [
{
name: 'from_acct',
value: 'Address:' + this.stakeWallet.address
},
{
name: 'amount',
value: this.amount
}
]
}
],
gasLimit: GAS_LIMIT,
gasPrice: GAS_PRICE,
payer: this.stakeWallet.address
}
action: "invoke",
params: {
login: true,
message: "Sesameseed Vote",
invokeConfig: {
contractHash: CONTRACT_HASH,
functions: [
{
operation: "Vote",
args: [
{
name: "from_acct",
value: "Address:" + this.stakeWallet.address
},
{
name: "amount",
value: this.amount
}
]
}
],
gasLimit: GAS_LIMIT,
gasPrice: GAS_PRICE,
payer: this.stakeWallet.address
}
}
});
this.tx = tx[0];
this.signVisible = true;
Expand Down

0 comments on commit 0430a1c

Please sign in to comment.