Altcoins Talks - Cryptocurrency Forum

Cryptocurrency Ecosystem => Ethereum Forum => Topic started by: Yamane_Keto on June 20, 2024, 01:24:41 PM

Title: need help with ERC-223 transactions
Post by: Yamane_Keto on June 20, 2024, 01:24:41 PM
I was trying to develop something related to ERC-223 tokens and I think they will have value in the future, but I am trying to modify my explorer to not only show transactions as it does in etherscan but also as an ABI contract. Does anyone know of any help?

Code: [Select]
contract ERC223 {
  function transfer(address to, uint value, bytes data) {
        uint codeLength;
        assembly {
            codeLength := extcodesize(_to)
        }
        balances[msg.sender] = balances[msg.sender].sub(_value);
        balances[_to] = balances[_to].add(_value);
        if(codeLength>0) {
            // Require proper transaction handling.
            ERC223Receiver receiver = ERC223Receiver(_to);
            receiver.tokenReceived(msg.sender, _value, _data);
        }
    }

https://github.com/Dexaran/ERC223-token-standard