Skip to content

Commit

Permalink
fix(connector-quorum): ether value and query params added
Browse files Browse the repository at this point in the history
Signed-off-by: jordigiam <[email protected]>
  • Loading branch information
jordigiam authored and petermetz committed Mar 7, 2021
1 parent d846a88 commit 0275451
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,16 @@
}
]
},
"value": {
"oneOf": [
{
"type": "string"
},
{
"type": "number"
}
]
},
"timeoutMs": {
"type": "number",
"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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,12 @@ export interface InvokeContractV1Request {
* @memberof InvokeContractV1Request
*/
gasPrice?: string | number;
/**
*
* @type {string | number}
* @memberof InvokeContractV1Request
*/
value?: string | number;
/**
* The amount of milliseconds to wait for a transaction receipt beforegiving up and crashing. Only has any effect if the invocation type is SEND
* @type {number}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export class PluginLedgerConnectorQuorum
const method: ContractSendMethod = methodRef(...req.params);

if (req.invocationType === EthContractInvocationType.CALL) {
const callOutput = await (method as any).call(...req.params);
const callOutput = await (method as any).call();
return { callOutput };
} else if (req.invocationType === EthContractInvocationType.SEND) {
if (isWeb3SigningCredentialNone(req.web3SigningCredential)) {
Expand All @@ -197,6 +197,7 @@ export class PluginLedgerConnectorQuorum
transactionConfig.from = web3SigningCredential.ethAccount;
transactionConfig.gas = req.gas;
transactionConfig.gasPrice = req.gasPrice;
transactionConfig.value = req.value;

const txReq: RunTransactionRequest = {
transactionConfig,
Expand Down

0 comments on commit 0275451

Please sign in to comment.