Giter Club home page Giter Club logo

artion-contracts's Introduction

Smart contracts for Fantom Artion Marketplace

artion-contracts's People

Contributors

chainlito avatar ibrahim1023 avatar jenikd avatar prolingua avatar quan8 avatar uprendis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

artion-contracts's Issues

Function buyItem

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

Change the pay token

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?

FantomAuction doc notes

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.