Skip to content

Commit

Permalink
fix bond amount
Browse files Browse the repository at this point in the history
  • Loading branch information
Megha-Dev-19 committed Jan 6, 2025
1 parent 3aab7c3 commit 4a3edc8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions playwright-tests/tests/settings/voting-duration.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,9 @@ test.describe("User is logged in", function () {
const wallet = await selector.wallet();

return new Promise((resolve) => {
wallet.signAndSendTransactions = async (transactions) => {
resolve(transactions.transactions[0]);
wallet.signAndSendTransaction = async (transaction) => {
console.log("transactions", JSON.stringify(transaction));
resolve(transaction);
return await new Promise(
(transactionSentPromiseResolve) =>
(window.transactionSentPromiseResolve =
Expand Down
5 changes: 3 additions & 2 deletions playwright-tests/util/sandboxrpc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import { KeyPairEd25519 } from "near-api-js/lib/utils/key_pair.js";
import { getLocalWidgetSource } from "./bos-workspace.js";

export const SPUTNIK_DAO_CONTRACT_ID = "sputnik-dao.near";
export const PROPOSAL_BOND = "100000000000000000000000";
// we don't have proposal bond for any instance (in this repo)
export const PROPOSAL_BOND = "0";

export class SandboxRPC {
async init() {
Expand Down Expand Up @@ -237,7 +238,7 @@ export class SandboxRPC {
quorum: "0",
threshold: [1, 2],
},
proposal_bond: "100000000000000000000000",
proposal_bond: PROPOSAL_BOND,
proposal_period: "604800000000000",
bounty_bond: "100000000000000000000000",
bounty_forgiveness_period: "604800000000000",
Expand Down

0 comments on commit 4a3edc8

Please sign in to comment.