tqtezos / minter

OpenMinter is dApp framework for enabling the creation and collection of non-fungible tokens (NFTs) on Tezos.
MIT License
192 stars 91 forks source link

Bootstrapping Your Own Contracts #436

Open byteblock-labs opened 3 years ago

byteblock-labs commented 3 years ago

I am deploying a contract on a specific account. followed below steps: 1- yarn bootstrap 2- Select Mainnet, https://rpc.tzbeta.net 3- Give Wallet address 4- Select market fee 5- Give wallet address to collect the fee 6- Provide secret key

It fails at below place in the "scripts/bootstrap-contracts-config.ts" file (There are some debug log added by me) try { $log.info(Originating ${params.contractAlias} contract...);

const storage = params.initStorage();
$log.info(`params.initStorage Done`);
**const origOp = await toolkit.contract.originate({
  code: params.contractCode,
  storage: storage
});**
$log.info(`toolkit.contract.originate Done`);
contract = await origOp.contract();
$log.info(`origOp.contract Done`);
$log.info(
  `Originated ${params.contractAlias} contract at address ${contract.address}`
);
$log.info(`  Consumed gas: ${origOp.consumedGas}`);

} catch (error) { const jsonError = JSON.stringify(error, null, 2); $log.error(${params.contractAlias} origination error ${jsonError}); process.exit(1); }

Error code: Encountered error: [2021-06-01T11:14:39.911] [ERROR] [default] - nftFaucet origination error { "errors": [ { "kind": "temporary", "id": "proto.009-PsFLoren.storage_exhausted.operation" } ], "name": "TezosOperationError", "id": "proto.009-PsFLoren.storage_exhausted.operation", "kind": "temporary", "message": "(temporary) proto.009-PsFLoren.storage_exhausted.operation" } (node:3675) UnhandledPromiseRejectionWarning: undefined (Use node --trace-warnings ... to show where the warning was created) (node:3675) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:3675) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. Encountered error: error Command failed with exit code 1. Encountered error: error Command failed with exit code 1.

✔ Done bootstrapping contracts

How do i solve it?

lmalave commented 3 years ago

@byteblock-labs I am facing the same "storage_exhausted_operation" error. Did you ever find a solution for this?

WizardsKnow commented 3 years ago

Try adding more Tezos to the wallet in order to the contract minted and published for use.