Questions tagged [smart-contracts]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
9 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
63 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
50 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?
1 vote
2 answers
191 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
31 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
1 answer
35 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,...
0 votes
1 answer
95 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
92 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
79 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
39 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
22 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
31 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
74 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
33 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
81 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
1 answer
112 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
62 views

Branch contract calls

I'm trying to replicate the contracts call for the raw found below: { "branch": "BMLgLBqf6dxFBNMLBBDkVtNSJCfQMcNxLiEmUKRmE8bYFrKY1CW", "contents": ...
0 votes
1 answer
159 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
34 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
40 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
79 views

Securely moving from Ghostnet to Mainnet

Are there any important things to do or check before moving a dApp from Ghostnet to Mainnet?
0 votes
2 answers
63 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 ...
1 vote
1 answer
65 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
24 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
38 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
52 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
247 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
32 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
205 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
58 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 &...
0 votes
1 answer
42 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 ...
2 votes
3 answers
132 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 ...
4 votes
1 answer
114 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 ...
1 vote
1 answer
51 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
25 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
85 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
15 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
120 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
92 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
72 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
120 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
2 answers
36 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 ...
0 votes
1 answer
94 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) ...
0 votes
2 answers
63 views

Using Pytezos to Properly call a smart contract with correct parameters ( to purchase token from objkt )

I am hitting a wall trying to figure out a working proof of concept to get pytezos to "purchase" a token from objkt. I am using the following script with pytezos under the assumption that: ...
0 votes
1 answer
30 views

Issue while generating NFT metadata

I have a problem for the generation of my metadata: https://ghostnet.tzkt.io/KT19FWtPSqybX52WaLVAD3xbWyHiRqNupD9Q/tokens/14/metadata This is how I generate my metadata in my code: const metadata = ...
1 vote
2 answers
52 views

Creation of a FA2 Token (Fungible) and not an NFT

I created a smart contract to do several interactions with tokens. With the tutorial on the tezos website: https://tezos.com/developers/tutorials/nft-markeplace Here is my smart contract: https://...
0 votes
1 answer
19 views

Buy NFT with fee for the marketplace

I want when a user buys an nft, 90% of the amount goes to the author and 10% to the marketplace. When I deploy my smart contract everything works fine: https://legacy.smartpy.io/ide?cid=...

1
2 3 4 5
9