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));
    }
}

@@ -65,24 +65,68 @@
 igInteger;%0A%0A
+import ethereumjava.solidity.SolidityUtils;%0A
 import ether
@@ -361,31 +361,61 @@
 256(
-new BigInteger(toDecode
+SolidityUtils.hexToBigDecimal(toDecode).toBigInteger(
 ));%0A

fix SInt decoder