Code Monkey home page Code Monkey logo

erc820's People

Contributors

0xjac avatar griffgreen avatar jbaylina 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

erc820's Issues

The address from README is empty

Readme says 0x820Afdf355177C099f0251e96A8e8B2974307381 is the central registry address, but there's no contract deployed there: https://etherscan.io/address/0x820Afdf355177C099f0251e96A8e8B2974307381

on the other hand, there's a deployed contract at the address hardcoded in
https://github.com/jbaylina/ERC820/blob/master/contracts/ERC820Client.sol
here it is:
https://etherscan.io/address/0x820c4597Fc3E4193282576750Ea4fcfe34DdF0a7
Is this the right one? It probably should go in the README

ExampleImplementer always returns positive value

In the example ExampleImplementer.sol, the function canImplementInterfaceForAddress always returns the positive value of ERC820_ACCEPT_MAGIC. Shouldn't this be doing some check either internally in the contract or against the registry to see that the interface can be implemented?

using return bool + fallback functions

https://github.com/jbaylina/eip820/blob/master/contracts/ExampleImplementer.sol#L5

pragma solidity ^0.4.18;

contract ExampleImplementer {
    function canImplementInterfaceForAddress(address addr, bytes32 interfaceHash) view public returns(bool) {
        return true;
    }
}

If I unlock the fallback function and provide some default behavior, then it would break those checks because of strange behavior by design in solidity if a method does not exist it will instead execute the fallback function, and if the fallback function does not raise an exception it will return 1 causing the check to pass.

The only solution that comes to my mind is to use some magic numbers. Maybe we should return uint which should be more than 0.

typo in the repository title

The current title is:
EIP 820 - Pseudo-introspaection using a registry contract

introspaection should be introspection

Update: the same typo is in the description field of package.json

eip777 imports another file

the file ReferenceToken.sol in the package ipe777 imports EIP820Implementer.sol instead of the old name 'ERC820Implementer.sol` therefor the linking does not work.
The file should be renamed in this package to be able to compile eip777

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.