Skip to main content

Questions tagged [smartpy]

Discussion about the SmartPy language

23 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2 votes
1 answer
131 views

How to use internal hacks to convert from String to Address (or from Address to String) in SmartPy

There is a similar question but it does not fully answer this question. In the answer for that question posted here there is mention that while it is officially not possible it is actually technically ...
0x10's user avatar
  • 359
2 votes
0 answers
91 views

how to hook function in smartpy FA2

when calling transfer method, how to call hook method on received smart contract. I'm using fa2 in smartpy
MS.J's user avatar
  • 51
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
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
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
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
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
34 views

Programatically create Tezos Wallet

Hi guys inside my ICO website I want to create on the fly a tezos compliant wallet with the custom tokens for people once they purhcase. Is there a way to programatically create a wallet thanks peeps?
The Gaming Pro's's user avatar
0 votes
1 answer
24 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
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
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
1 answer
21 views

got HTTPError while imporing

i am getting http error while importing fa2 library. i checked link and it says host error. did it moved to new address? File "./contracts/src/something.py", line 3, in FA2 = sp.io....
Sandip Bhujel's user avatar
0 votes
2 answers
71 views

Decoding sp.pack("address") outside of chain

I have a question , While packing the string, "KT1FRoFxDhnKXGPggejHPAnMs27j6rcVfwzV", the output is 0501000000244b543146526f467844686e4b5847506767656a4850416e4d7332376a3672635666777a56 this ...
lee brune's user avatar
0 votes
0 answers
34 views

Is there a smartpy util to stringify JSON?

I see there's a good utils repo for strings here: https://github.com/RomarQ/tezos-sc-utils I'm just wondering whether there's one for stringifying JSON. Or an example that does this. Input: map or ...
JJJ's user avatar
  • 557
0 votes
0 answers
33 views

missing token metadata

I believe with this operation ooDavbDYs9SkBR4JoaUxTBysvEnd7y1gP1ZDGddQgfQZaURpdjx I have created a token. This is the entry point I called @sp.entry_point def mintDiezDAO(self, params): sp....
Lauzaki's user avatar
0 votes
1 answer
165 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, ...
Daly's user avatar
  • 442
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 ...
Guilherme Cousseau's user avatar
-1 votes
1 answer
73 views

Tezos SmartPy Developer Course video 1.2

How do I get find the Tezos test net as opposed to the web browser smart py interface? Regards WF
Blockchain Economy's user avatar
-2 votes
3 answers
245 views

Fraudulent Smartpy Charges on my credit card

For two months now I have been charged for Smartpy Smart Browser that I didn't ask for or sign up for. Can someone help me get to the bottom of this.
Rick's user avatar
  • 1
-3 votes
1 answer
70 views

Any updated marketplace and nft contract based on SmartPy and Taquito

const mintNFT = async ({ amount, metadata }) => { const response = await checkIfWalletConnected(wallet); try { const tezos = new TezosToolkit(rpcURL); tezos.setWalletProvider(...
Shreyansh Singhal's user avatar