Help with TestNet behavior (works on devnet, but not testnet). #1429
-
Hello, I am in the process of learning reach and getting to grips with it. I have created a simple program that allows a user to list an NFT for sale and then for a buyer to interact with it, which will then send all the funds to the creator of the contract (as one would expect the behaviour to be). My program works on my local ALGO devnet reach instance. However when I go to deploy my program and test on the algo testnet, the "Buyer" participant does not behave as expected when the Buyer partipant interacts with the contract. Is it expected that it will send the given funds to the contract (price of the nft) and then receive the NFT itself. Below I have attached the error, some teal logic ofc! (hard for me to read this and work out where in my reach code this is being thrown). Below is how I can calling my code on the front-end, after the creator deploys the contract in a different step. the I am using the latest version of the reach js sdk If anyone can point out what I'm doing wrong it would be greatly, appreciated. Regards, A keen learner
index.mjs
index.rsh
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Is You should delete |
Beta Was this translation helpful? Give feedback.
Is
index.mjs
the program that works on DevNet, but then the first sample that saysNFTBuyer
is the one that is failing on the TestNet?You should delete
Buyer.publish();
andAnybody.publish();
from your program. They don't do anything useful and just cost money.