Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

fix: prune call to obsolete getFeePurse #45

Merged
merged 2 commits into from
May 14, 2022
Merged
Changes from 1 commit
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
17 changes: 0 additions & 17 deletions contract/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,22 +57,6 @@ const installBundle = async (pathResolve, zoe, board) => {
return { CONTRACT_NAME, INSTALLATION_BOARD_ID };
};

/**
* @param {ERef<Object>} wallet
* @param {ERef<Object>} faucet
*/
const sendDeposit = async (wallet, faucet) => {
// We must first fund our "feePurse", the purse that we will use to
// pay for our interactions with Zoe.
const RUNPurse = E(wallet).getPurse(pursePetnames.RUN);
const runAmount = await E(RUNPurse).getCurrentAmount();
const feePurse = E(faucet).getFeePurse();
const feePayment = await E(E(wallet).getPurse(pursePetnames.RUN)).withdraw(
runAmount,
);
await E(feePurse).deposit(feePayment);
};

/**
* @param {Promise<{zoe: ERef<ZoeService>, board: ERef<Board>, agoricNames:
* Object, wallet: ERef<Object>, faucet: ERef<Object>}>} homePromise
Expand Down Expand Up @@ -110,7 +94,6 @@ const deployContract = async (homePromise, { pathResolve }) => {
faucet,
} = home;

await sendDeposit(wallet, faucet);
const { CONTRACT_NAME, INSTALLATION_BOARD_ID } = await installBundle(
pathResolve,
zoe,
Expand Down