Skip to content

Commit

Permalink
fix(RPC): Add contract contractDecodeCallResultAPI to RPC (#482)
Browse files Browse the repository at this point in the history
  • Loading branch information
nduchak authored Jun 13, 2019
1 parent 14e7ab4 commit 7eb6bd8
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions es/contract/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ const ContractBase = stampit({
'contractDecodeCallDataByCodeAPI',
'contractGetACI',
'setCompilerUrl',
'getCompilerVersion'
'getCompilerVersion',
'contractDecodeCallResultAPI'
]
}
}
Expand All @@ -59,7 +60,8 @@ const ContractBase = stampit({
compileContractAPI: required,
contractGetACI: required,
setCompilerUrl: required,
getCompilerVersion: required
getCompilerVersion: required,
contractDecodeCallResultAPI: required
}
}))

Expand Down Expand Up @@ -88,6 +90,20 @@ const ContractBase = stampit({
* @return {String} - Decoded contract call result
*/

/**
* Decode contract call result data
* @function contractDecodeCallResultAPI
* @instance
* @abstract
* @category async
* @rtype (source: String, fn: String, callValue: String, callResult: String) => decodedResult: Promise[String]
* @param {String} source - Contract source
* @param {String} fn - Fn name
* @param {String} callValue - result data (cb_das...)
* @param {String} callResult - contract call result status('ok', 'revert', ...)
* @return {String} - Decoded contract call result
*/

/**
* Decode call data by source
* @function contractDecodeCallDataBySourceAPI
Expand Down

0 comments on commit 7eb6bd8

Please sign in to comment.