final TransactionInput newInput = new TransactionInput(
Network.NETWORK,
null,
oldInput.getScriptBytes(),
oldInput.getOutpoint(),
<BUG>Coin.valueOf(Long.valueOf((String) ep.get("value")))
);</BUG>
newInput.setSequenceNumber(0);
tx.addInput(newInput);
}

final TransactionInput newInput = new TransactionInput(
Network.NETWORK,
null,
oldInput.getScriptBytes(),
oldInput.getOutpoint(),
ep.getCoin("value")
);
newInput.setSequenceNumber(0);
tx.addInput(newInput);
}
