Skip to main content

Questions tagged [smart-contracts]

The tag has no usage guidance.

70 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
0 answers
81 views

"Unhandled error: Failure backtracked" while trying to creating a contract

I'm trying to work with the example code from the liquidity documentation for Contract.create(). The code compiles and tests on the online-editor properly. It also deploys using the editor. But when I ...
pathfinder's user avatar
4 votes
0 answers
32 views

Checking contract against contract type in Liquidity

With the example below, is it possible to get liquidity to check that the type of the contract C matches C_intf? contract type C_intf = sig type storage val%entry check_balance : nat -> _ end ...
Seb Mondet's user avatar
4 votes
0 answers
38 views

How to split a string in Liquidity?

I'm attempting to split apart a string by "." so that "my.name" returns {"my", "name"}. However, I can't seem to find an in-built method of performing this operation in Liquidity. Lately, I've tried ...
Pierce Travers's user avatar
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 ...
Önder Gürcan's user avatar
4 votes
0 answers
48 views

getting off chain data on chain to smart contracts

Currently 80+% of smart contracts need off chain data, is there a solution to bring off chain data on chain to trigger for smart contracts? (oracles related)
vincent's user avatar
  • 41
4 votes
0 answers
29 views

Michelson_v1_printer.unparse error with originate contract

I am trying to use tezos client to deploy contract on alphanet but I get error Michelson_v1_printer.unparse Command: tezos-client -l -A $TEZOS_NODE originate contract controller_v6 for $MANAGER ...
Anjali's user avatar
  • 71
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?
Andre Fuchs's user avatar
3 votes
0 answers
37 views

In sandbox mode, can you bake a block with a specific timestamp?

I am testing a smart contract that enforces time delays on state transitions. I want to be able to run the bake command and have the latest block have a particular Unix timestamp (e.g. for 1 day ahead ...
Darius's user avatar
  • 649
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 &...
greeneye12's user avatar
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 ...
Matt Sparrer's user avatar
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)?
Qatrach's user avatar
  • 31
2 votes
0 answers
109 views

Random # Generating Smart Contracts

I've had an idea about being able to utilize effectively random #s on tezos, but I don't know if it's totally stupid and impossible to utilize, or a possible and really simple solution: I need to ...
Teztees's user avatar
  • 75
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,...
Boris3000's user avatar
2 votes
0 answers
72 views

how can i call specific smartpy tezos contract entrypoint using ConseilJs?

I am trying to set UI that allow users to interact with tezos smart contract by pressing some buttons that have to call the corresponding function in the smart contract with relative arguments
siham's user avatar
  • 51
2 votes
0 answers
27 views

Unable to deploy a Liquidity smart contract directly (without offline signature / forged operation)

I'm trying to deploy a contract directly as specified in Liquidity docs, but the CLI fails with: Failure: edsk3gUfUPyBSfrS9CCgmCiQsTCHGkviBDusMxDJstFtojtc1zcpsh is not a valid private key I have ...
Matej maht0rz Šima's user avatar
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 ...
candlez's user avatar
  • 49
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?
greeneye12's user avatar
1 vote
0 answers
45 views

How does an oracle contract get data from outside the blockchain?

I want to build an oracle which gets data on chain from a weather API. The way I'm thinking about implementing this is to run a server which periodically fetches the data from a weather API, and calls ...
tinuggunit's user avatar
1 vote
0 answers
23 views

Counter for wallet is not incremented after mint using taquito

I'm minting successfully from a contract. Then when I go to transfer the NFT I get the error: "HttpResponse: Http error response: (500) [{"kind":"branch","id":"...
Evan Fisher's user avatar
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 ...
Sanjeewa Malaka's user avatar
1 vote
0 answers
8 views

Suggestion more then question about tezos course on plural sight

There is a good course about BlockChain fundamentals on Plural sight but addressing ethereum. It could be great if someone can create similar curse there with targeting tezos with
Kamran Shahid's user avatar
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 ...
JJJ's user avatar
  • 557
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 ...
oriana's user avatar
  • 119
1 vote
0 answers
68 views

How do I call a tezos smart contract over go

I have deployed a smart contract to my tezos blockchain and want to interact with it. I found the go library tzgo (https://github.com/blockwatch-cc/tzgo) to interact with the blockchain and there is ...
Armend's user avatar
  • 11
1 vote
0 answers
30 views

How can we accept USDTZ in smartpy smart contracts, is it even posible?

I was working on a token sale, so is there any way we can accept USDTZ as a mode of payment for the tokens?
Arhan Choudhury's user avatar
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.
Vinnyson's user avatar
  • 515
1 vote
0 answers
112 views

Initialize a record storage with command line

I'm trying to initialize the storage of the record through the command line. I'm trying different variations of: "ligo compile-storage college.religo main 4 Adam 1600" For a record called ...
Adam Shinder's user avatar
1 vote
0 answers
29 views

Try to confirm fundamental mechanism about the shielded pool

Can we say, in a nutshell, the shielded pool is the integration of the FA1.2 token protocol and the PGP tech? Many thanks!
Michelle Song's user avatar
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 ...
Michelle Song's user avatar
1 vote
0 answers
71 views

I got this error from conseil js TezosNodeWriter.sendContractOriginationOperation. What could be the problem

Failed to parse the request body: No case matched: At /kind, unexpected string instead of endorsement At /kind, unexpected string instead of seed_nonce_revelation At /kind, unexpected string ...
Baah Kusi's user avatar
1 vote
0 answers
25 views

Fi update a set with 'get'

Struggling with Ligo so took a look at Fi. I want to create a provenancy smart contract i.e. add an artwork, then transfer ownership. The Fi compiler says Error: Error with variable ext - for variable ...
Mark Robson's user avatar
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)...
Pawan Dhanwani's user avatar
1 vote
0 answers
38 views

Split function contract template

Is there a code template for a simple contract which splits the incoming funds and sends them proportionally to a list of pre-registered addresses? Example: Contract has the following functions: ...
XTZST2O's user avatar
  • 835
1 vote
0 answers
39 views

Deployment of a smart contract through fi compiler

I seem to fill in these parameters incorrectly. What do I need to enter in the Storage.Value and Storage.StartTime columns? If you can give examples
Chmoshk's user avatar
  • 125
1 vote
0 answers
46 views

Problem with Liquidity installation

After entering this command make build-deps , I get the error message: The following dependencies couldn't be met: - liquidity → ocaml < 4.07.1 no matching version No solution found, ...
Chmoshk's user avatar
  • 125
1 vote
1 answer
246 views

How do you create a secondary KT1 contact under your TZ address?

I want to have multiple KT1 address on one TZ address(ledger) to delegate to multiple people
Mack Baise's user avatar
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 ...
Grum's user avatar
  • 147
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 ...
jed's user avatar
  • 1
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 ...
Ben's user avatar
  • 1
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 ...
mathematicsenthusiast's user avatar
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'...
borderlessdev's user avatar
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 ...
Guilherme Cousseau's user avatar
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/...
mathematicsenthusiast's user avatar
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 "...
PinkD's user avatar
  • 1
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":"...
theBatMan's user avatar
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&...
habitable_planet's user avatar
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 ...
Rukundo Aimé's user avatar
0 votes
0 answers
29 views

Unable to interact with other contracts because Tezos.get_contract_opt got None

I tried to interact with other contracts but failed because Tezos.get_contract_opt always returns None. Here's the demo code (ligo v0.60.0): receiver.jsligo - A contract that the "broadcaster&...
caaatisgood's user avatar
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 ...
lee's user avatar
  • 1
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 ...
tiamat's user avatar
  • 131