Update the graphenej library

Put the testnet chain id on the transaciton for the Send operation
master
henry 2018-01-23 19:59:19 -04:00
parent b02f488a7e
commit c8318aaf5b
2 changed files with 4 additions and 1 deletions

View File

@ -51,7 +51,7 @@ dependencies {
compile 'com.neovisionaries:nv-websocket-client:1.30'
compile 'org.tukaani:xz:1.6'
compile 'com.jakewharton:butterknife:8.8.1'
compile 'com.github.bilthon:graphenej:0.4.6-alpha1'
compile 'com.github.bilthon:graphenej:0.4.6'
compile 'com.google.zxing:core:3.3.1'
compile 'me.dm7.barcodescanner:zxing:1.9.8'

View File

@ -54,6 +54,8 @@ import cy.agorise.graphenej.operations.TransferOperationBuilder;
*/
public class BitsharesAccountManager implements CryptoAccountManager, CryptoNetInfoRequestsListener {
private final static String BITSHARES_TESTNET_CHAIN_ID= "9cf6f255a208100d2bb275a3c52f4b1589b7ec9c9bfc2cb2a5fe6411295106d8";
@Override
public CryptoNetAccount createAccountFromSeed(CryptoNetAccount account, Context context) {
if(account instanceof GrapheneAccount) {
@ -292,6 +294,7 @@ public class BitsharesAccountManager implements CryptoAccountManager, CryptoNetI
ECKey privateKey = sendRequest.getSourceAccount().getActiveKey(sendRequest.getContext());
Transaction transaction = new Transaction(privateKey, null, operationList);
transaction.setChainId(BITSHARES_TESTNET_CHAIN_ID);
ApiRequest transactionRequest = new ApiRequest(0, new ApiRequestListener() {
@Override