Closed TheArhaam closed 3 years ago
buildGetAcceptanceMechanismsRequest throws CommonInvalidParam4, caused by Invalid pointer has been passed
buildGetAcceptanceMechanismsRequest
CommonInvalidParam4
Invalid pointer has been passed
IndySdkModule.java
@ReactMethod public void buildGetAcceptanceMechanismsRequest(String submitterDid, int timestamp, String version, Promise promise) { try { String request = Ledger.buildGetAcceptanceMechanismsRequest(submitterDid, timestamp, version).get(); promise.resolve(request); } catch (Exception e) { IndySdkRejectResponse rejectResponse = new IndySdkRejectResponse(e); promise.reject(rejectResponse.getCode(), rejectResponse.toJson(), e); } }
index.js
async buildGetAcceptanceMechanismsRequest(submitterDid: Did, timestamp: number, version: string): Promise<string> { if (Platform.OS === 'ios') { throw new Error(`Unsupported operation! Platform: ${Platform.OS}`) } return JSON.parse(await IndySdk.buildGetAcceptanceMechanismsRequest(submitterDid, typeof timestamp == 'undefined' ? -1 : timestamp, typeof version == 'undefined' ? null : version)) },
Is related to #33
I'm closing the issue in favor of hyperledger/indy-sdk-react-native#10. This repository is being archived.
buildGetAcceptanceMechanismsRequest
throwsCommonInvalidParam4
, caused byInvalid pointer has been passed
IndySdkModule.java
index.js