Skip to main content

Questions tagged [smart-contracts]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
36 views

Patching a contract with deprecated instructions

The following contract (Hic Et Nunc Marketplace V1) contains the deprecated instruction SUB on type mutez: https://github.com/hicetnunc2000/objkt-swap/blob/master/michelson/objkt_swap_v1.tz I want to ...
2 votes
1 answer
271 views

Tezos on a ERC20 Wallet

Sorry in advanced, my english is not the best. but i have to try. Situation: I bought Tezos on the Binance App. Then i sent all the Tezos to my Wallet (ERC20 Wallet). Now its not showing on the wallet,...
1 vote
2 answers
291 views

Delegating from a Kt1 address locked my coins, how can I fix it?

Might have royally messed up here, but I added an address via command line with ./tezos-client add address stakingfacilities tz1WpeqFaBG9Jm73Dmgqamy8eF8NWLz9JCoY (for stakingfacilities baker in ...
0 votes
1 answer
19 views

Events and emit archetype issue: TypeError: Cannot read properties of undefined (reading '0')

I'm having some trouble getting events and emit to work as I expect in my archetype contract. I must be messing something up with the syntax. I have no problem if I am emitting a single value in the ...
0 votes
1 answer
98 views

Cannot get transfer entrypoint

I'm trying to call an FA1.2 transfer function from another contract. Here is my endpoint in the FA1.2 contract: type action is | Transfer of michelson_pair(address, "from", michelson_pair(...
1 vote
1 answer
103 views

about royalty of Tezos NFT

I want to know about the royalties of Tezos NFT. how can I collect the royalty. what are the restriction on the Tezos side. how to write the smart contract with including royalty and are there any ...
0 votes
1 answer
82 views

tqtezos / minter-sdk installation issue

I am trying to run below command for minter-contract on my local machine and getting error npm i @tqtezos/minter-contracts no such file or directory, chmod ‘/node_modules/@tqtezos/minter-contracts/...
0 votes
2 answers
58 views

Error: TezosOperationError: (branch) proto.017-PtNairob.contract.empty_transaction

So, i'm doing the royalties function for my NFT Marketplace. My idea was to make a big map with the royalties (user and amount) for each new token created, and it's working fine. My problem is when i'...
0 votes
1 answer
25 views

Two contract interactions same time?

So, i want to list my NFT, so, i update operators and then update my metadata. The problem is i need to accept two times, one to update operators, other to update (list) in metadata. Is that a way to ...
0 votes
2 answers
42 views

Error: Uncaught (in promise) TezosOperationError: (temporary) proto.017-PtNairob.tez.subtraction_underflow

Error: Uncaught (in promise) TezosOperationError: (temporary) proto.017-PtNairob.tez.subtraction_underflow I know this error is caused by a subtraction resulting in a negative number, but i'm just ...
1 vote
1 answer
75 views

Contract supplied an invalid parameter

I have a little problem because my mint does not pass because of invalid parameters, I don't quite understand why..., in the entrypoint call I deliberately did not put the token_id parameter because ...
0 votes
1 answer
19 views

Error deploying to sandbox with completium

The command npx completium-cli deploy contracts/battlemaster.arl --parameters '{"battle_master_fighter_id":6}' --force runs with no problem if my endpoint is set to ghostnet, correctly ...
0 votes
1 answer
43 views

calling a FA2 smart contract transfer entrypoint from my contract in smartpy

Hello guys I am trying to call from my contract entry point from FA2 token contract that I have deployed. But I am unable to find anything on the internet. The only thing I found from the ...
0 votes
1 answer
113 views

Calling contract deployed on Tezos sandbox using Taquito

I've a simple contract deployed on Tezos sandbox (https://assets.tqtezos.com/docs/setup/2-sandbox/) and I'm using Taquito in frontend to call this contract. Earlier, I deployed the contract to global ...
0 votes
1 answer
63 views

Branch contract calls

I'm trying to replicate the contracts call for the raw found below: { "branch": "BMLgLBqf6dxFBNMLBBDkVtNSJCfQMcNxLiEmUKRmE8bYFrKY1CW", "contents": ...
0 votes
1 answer
166 views

Initiate a field in the storage of a contract with the source address of origination

I have the following smart contract where I pass admin address in the init function of the smart contract: (you can run it on smartPy online editor) class SC(sp.Contract): def __init__(self, ...
0 votes
2 answers
37 views

Contract compile error in Dapp tutorial (wine collection marketplace)

I'm trying to run through this tutorial on dapp development with ligo (https://tezos.com/developers/tutorials/nft-ligo-marketplace/) and am running into an error. In the "NFT Marketplace Contract&...
0 votes
1 answer
41 views

deprecated_instruction error upon contract deployment

I'm attempting to clone some contracts that are available on mainnet and deploy them to Ghostnet. When trying to deploy the Hic et Nunc Marketplace (https://tzstats.com/...
3 votes
1 answer
89 views

Securely moving from Ghostnet to Mainnet

Are there any important things to do or check before moving a dApp from Ghostnet to Mainnet?
1 vote
1 answer
67 views

Pascaligo map iteration issue

I try to fetch a list of addresses with expired date by appending the address to list(address). However when doing map iteration, it encounters a persistent error says 'not True'. Hope someone can ...
0 votes
1 answer
41 views

Details on VDF for randomization

so i was going through this article, https://research-development.nomadic-labs.com/verifiable-delay-functions.html the more i read it, the more i got confused, Is there a easy way we can achieve this ...
2 votes
1 answer
54 views

Is there any Sapling contract on mainnet?

Is there on mainnet any deployed Sapling contract that anyone really uses (through tezos-client, as I believe it's the only supported way to do it now)?
0 votes
1 answer
317 views

RPC error when using @templewallet/dapp

I'm getting this error when trying to execute a contract using temple wallet in my Dapp. Failed to send request to https://hangzhounet.smartpy.io/chains/main/blocks/head/helpers/forge/operations. ...
0 votes
1 answer
208 views

proto.007-PsDELPH1.storage_exhausted.operation when originating contract (storage_limit is set)

I am trying to deploy a contract to delphinet with truffle. On a local sandbox the contract deploys just fine, but for the deployment on Delphi I am getting: proto.007-PsDELPH1.storage_exhausted....
2 votes
1 answer
83 views

Error 32603 Metamask to deploy an ERC20 on the EVM rollup

Hi I am trying to deploy an ERC20 on the EVM rollup I am copying this code for ERC20 and using the Remix IDE When I use the "Remix VM (shanghai)", it works fine However, when I switch to &...
4 votes
1 answer
116 views

How to implement a signature checker for the signature scheme BLS?

We are willing to implement a signature checker for the signature scheme BLS (or BLS12-381). To the best of our knowledge, it may not be too painful since the smart contract language already supports ...
2 votes
3 answers
133 views

Originate contract with init

I have a contract of type: pair (pair (list nat) (pair mutez (map address (list nat)))) (pair address (pair address bool)) What is an example of a valid initial storage that can be passed to ...
1 vote
1 answer
65 views

Rollup Q&A: How can arbitrum or optimism update their rollup with an admin key? I thought Smart Contract were immutable?

Question from reddit How can Arbitrum or Optimism update their rollup with an admin key? I thought SC were immutable?
0 votes
1 answer
30 views

interact with FA2.0 Smart Contract

I deployed a FA2.0 Smart Contract and would need to interact with it through Java. I tried to use Tezosj (enter link description here) but it does not support FA2.0 smart contracts...hence, I would ...
2 votes
1 answer
92 views

How to get randomness for my game?

Let's say a player encounters an enemy on a grid-based game, how can I generate a random number on chain to generate the enemy basic characteristics ( HP, strength, agility... ) at the time of the ...
0 votes
1 answer
16 views

sp.contract can get only explicit string as an entrypoint

I'm trying to call another contract from mine. It seems like I can't feed sp.contract with an entrypoint string that comes from an argument (it works perfectly fine with an explicit string like "...
0 votes
2 answers
128 views

Tezos Contracts Compiling Error

I am just days into learning how to build a dapp on Tezos for my thesis. I tried replicating the steps from Claude's tutorial - https://hackernoon.com/build-your-first-dapp-on-tezos-rwgl3ymb I ran ...
0 votes
1 answer
44 views

triggering outside actions from tezos

assuming I am running a tezos node, is there any way to create a smart contract in tezos that is capable of triggering outside actions? For example, sending an email to an address, or turning lights ...
0 votes
2 answers
94 views

How can I save the gas cost of operations when running contracts in sandbox pytest?

I am testing smart contracts in sandbox mode using python scripts. I want to be able to store how much an operation cost. So for example when I get the output of a contract origination after baking a ...
1 vote
1 answer
73 views

Using the token_metadata @offchain_view to load tzip-21 compliant metadata

Are there any downsides to how I'm declaring the token_metadata in the @offchain_view below? Loading the data from storage appears to work as expected when testing it on tzcomet and BCD, though I just ...
1 vote
2 answers
124 views

Send tezos to contract address after origination using conseiljs

I am trying to send tez from my tz1-AAA account to KT1-AAA contract address means I want my contract address to hold some tez. Disclaimer - I have knowingly replaced some part of address with "....(s)...
0 votes
1 answer
96 views

Get entrypoint operation (get_entrypoint_opt) fails

I have some troubles to call a contract. This is the scenario: Contract B (Entrypoint method "transfer"): (pair %transfer (bytes %args1) (pair (string %args2) ...
1 vote
2 answers
193 views

Implementing Contract Metadata (tzip-16) on an already originated FA1.2 Smart Contract

Referring to the documents and examples of tzip-16, how would one implement the contract metadata on a Fa1.2 contract on SmartPy? In order to provide balance updates and offchain events.
0 votes
1 answer
41 views

The operation cannot be added because the mempool already contains a conflicting operation that should not be replaced

I am getting below issue while deploying SmartPy contract in ghostnet. HttpResponse: Http error response: (500) [ { "kind":"temporary", "id":"...
0 votes
0 answers
22 views

Subscribing/retrieving data from large bigmaps

I am new tezos and was wondering if there is an existing stable and maintained tool that allows subscribing to and/or retrieving large amounts of data from smart contract big maps? I just want to ...
0 votes
0 answers
13 views

Sending simple data in smart contract call

I want to make a simple payment receiver contract not using default the entrypoint that also just sends a plain text message. Is there a way to just send a simple message within the input data that ...
0 votes
2 answers
88 views

I want to transfer the tokens from one contract to another address

When I transfer the token from the contract address: KT1LkNWZgVYh3zdaRkBb9aNgLEFCjVJwEKu2, it works well. However, when I switch back to the address KT1P8RdJ5MfHMK5phKJ5JsfNfask5v2b2NQS, an issue ...
1 vote
3 answers
67 views

I want to retrieve the balance of a smart contract that I own using my wallet address and the address of that smart contract, how can I do that?

I have a contract address: KT1P8RdJ5MfHMK5phKJ5JsfNfask5v2b2NQS, and a wallet address: tz1MSint56iUqoogrKsvEMEykpbKv2Yhmzss. What can I do?
0 votes
1 answer
82 views

Is there a more sensible way to convert an int to a string in Cameligo?

Is there a more sensible way to convert an int to a string in Cameligo? Alternatively, is there a way to concatenate an int or nat with a string? type lookup = (int, string) map let lookup: lookup = ...
0 votes
2 answers
71 views

CORS error with completium-cli sandbox

I'm trying to access a contract on the completium-cli sandbox within my dapp running on a local vite server. Ideally I would set up my dev environment so I can test deploy to the sandbox within the ...
0 votes
1 answer
25 views

How to access contract metadata from another contract?

I'm building a NFT Marketplace. I already set the mint function (with editions), list and buy function. Now i'm trying to build the auctions functions. On Smartpy, i created the Marketplace class, and ...
0 votes
1 answer
35 views

How to set Total Supply on TzKT?

I'm trying to create multi-edition items. My idea was to make a list of each token and then each token edition with the owner. Ok, i create the item and shows like that on blockchain: https://api....
0 votes
1 answer
47 views

Error: Error in Scenario / Assertion failed

I am doing a contract to Mint Nfts on Tezos on Legacy SmartPY ide (because Tezos tutorial uses it). I already created Nfts but only in single edition, now i'm trying to do a Multi-edition, but the IDE ...
0 votes
2 answers
38 views

Url error in smartpy

I trying to write a smart contract on the tezos network and using import FA2 library for this. But when I try to run the code I face the url error. this is my code : import smartpy as sp FA2 = sp.io....
4 votes
1 answer
78 views

Calling contract invocation operation in loop

I have some set of data which I am trying to push to my smart contract in loop. I use conseiljs to send data to smart contract. Here is the code depicting what I am trying to do. async function ...

1
2 3 4 5
9