Skip to content

Commit 0275451

Browse files
jordigiampetermetz
jordigiam
authored andcommitted
fix(connector-quorum): ether value and query params added
Signed-off-by: jordigiam <[email protected]>
1 parent d846a88 commit 0275451

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

packages/cactus-plugin-ledger-connector-quorum/src/main/json/openapi.json

+10
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,16 @@
510510
}
511511
]
512512
},
513+
"value": {
514+
"oneOf": [
515+
{
516+
"type": "string"
517+
},
518+
{
519+
"type": "number"
520+
}
521+
]
522+
},
513523
"timeoutMs": {
514524
"type": "number",
515525
"description": "The amount of milliseconds to wait for a transaction receipt beforegiving up and crashing. Only has any effect if the invocation type is SEND",

packages/cactus-plugin-ledger-connector-quorum/src/main/typescript/generated/openapi/typescript-axios/api.ts

+6
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,12 @@ export interface InvokeContractV1Request {
133133
* @memberof InvokeContractV1Request
134134
*/
135135
gasPrice?: string | number;
136+
/**
137+
*
138+
* @type {string | number}
139+
* @memberof InvokeContractV1Request
140+
*/
141+
value?: string | number;
136142
/**
137143
* The amount of milliseconds to wait for a transaction receipt beforegiving up and crashing. Only has any effect if the invocation type is SEND
138144
* @type {number}

packages/cactus-plugin-ledger-connector-quorum/src/main/typescript/plugin-ledger-connector-quorum.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export class PluginLedgerConnectorQuorum
181181
const method: ContractSendMethod = methodRef(...req.params);
182182

183183
if (req.invocationType === EthContractInvocationType.CALL) {
184-
const callOutput = await (method as any).call(...req.params);
184+
const callOutput = await (method as any).call();
185185
return { callOutput };
186186
} else if (req.invocationType === EthContractInvocationType.SEND) {
187187
if (isWeb3SigningCredentialNone(req.web3SigningCredential)) {
@@ -197,6 +197,7 @@ export class PluginLedgerConnectorQuorum
197197
transactionConfig.from = web3SigningCredential.ethAccount;
198198
transactionConfig.gas = req.gas;
199199
transactionConfig.gasPrice = req.gasPrice;
200+
transactionConfig.value = req.value;
200201

201202
const txReq: RunTransactionRequest = {
202203
transactionConfig,

0 commit comments

Comments
 (0)