Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Bootstrapping Your Own Contracts #436

Open
byteblock-labs opened this issue Jun 1, 2021 · 2 comments
Open

Bootstrapping Your Own Contracts #436

byteblock-labs opened this issue Jun 1, 2021 · 2 comments

Comments

@byteblock-labs
Copy link

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
Copy link

lmalave commented Jul 18, 2021

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

@WizardsKnow
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants