fantom-foundation / artion-contracts Goto Github PK
View Code? Open in Web Editor NEWSmart contracts for Fantom Artion Marketplace
License: GNU General Public License v3.0
Smart contracts for Fantom Artion Marketplace
License: GNU General Public License v3.0
Greetins, when i execute this function return me this error, someone can help me with this? Thanks.:(
Returned error: execution reverted: Address: call to non-contract
Is EIP2981 royalty standard supported here. Not seeing this in contracts.
Hello i want know how change the pay token, i try changed it in FantomTokenRegistry, in the function of add exist an comment
/**
@notice Method for adding payment token
@dev Only admin
@param token ERC20 token address
*/
function add(address token) external onlyOwner {
require(!enabled[token], "token already added");
enabled[token] = true;
emit TokenAdded(token);
}
I run this function with the token, but when i want buy an Item, minted and listed, the transaction return me this:
Returned error: execution reverted: invalid pay token
How i can changed it?
Artifacts are missing for contracts. Test cases are failing. Can you please tell me how to run the test cases successfully?
Only few notes to methods documentation in FantomAuction:
createToken: The method description claims "In addition to owning the item, the sender also has to have the MINTER role."
However I dont see any check like it in the code - should be the auction creation limited only to token MINTERs?
I would suppose it should not and the comment should be removed.
resultAuction: The method description claims it can be called by "Only admin or smart contract" - however the "require" at the beginning of the code requires the sender to be the token owner, it does not seem like some smart contract is enabled.
If it is correct, is there some reason to require isApprovedForAll(auctionOwner, auctionContract)
(which is checked already on auction creation), when the token transfer is always done in resultAuction, which can be called only by the token owner? And why is the approvement required for all tokens of the auction owner, not only for the auctioned token?
Thanks!
When running the test, I am getting the error which is related to FantomNifty.
Here is a screenshot.
https://share.getcloudapp.com/kpu46PdL
Anyone same error?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.