@funded-labs/plug-controller
Version:
Internet Computer Plug wallet's controller
11 lines (10 loc) • 560 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const constants_1 = require("../../dfx/constants");
const tokens_1 = require("../../../constants/tokens");
exports.default = (storage) => {
return Object.assign(Object.assign({}, storage), { wallets: storage.wallets.map((wallet) => {
delete wallet.assets.null;
return (Object.assign(Object.assign({}, wallet), { assets: Object.assign({ [constants_1.LEDGER_CANISTER_ID]: { amount: '0', token: tokens_1.TOKENS.ICP } }, wallet.assets) }));
}) });
};