package ethereumjava.solidity.coder.decoder;

import ethereumjava.solidity.types.SInt;

/**
 * Created by gunicolas on 08/09/16.
 */
public abstract class SIntDecoder implements SDecoder<SInt> {

    @Override
    public SInt decode(String toDecode) {
        return null;
    }
}

package ethereumjava.solidity.coder.decoder;

import java.math.BigInteger;

import ethereumjava.solidity.types.SInt;

/**
 * Created by gunicolas on 08/09/16.
 */
public abstract class SIntDecoder implements SDecoder<SInt> {

    @Override
    public SInt decode(String toDecode) {
        return SInt.fromBigInteger256(new BigInteger(toDecode));
    }
}

add SInt coder