Skip to content

Commit

Permalink
decodeTx: Fix arg naming and annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuk committed Mar 18, 2021
1 parent 39f93d3 commit 883819c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions es/utils/crypto.js
Original file line number Diff line number Diff line change
Expand Up @@ -449,11 +449,11 @@ export function assertedType (data, type, omitError) {
/**
* Decode a transaction
* @rtype (txHash: String) => Buffer
* @param {String} txHash - Transaction hash
* @param {String} encodedTx - Encoded transaction
* @return {Buffer} Decoded transaction
*/
export function decodeTx (txHash) {
return RLP.decode(Buffer.from(decodeBase64Check(assertedType(txHash, 'tx'))))
export function decodeTx (encodedTx) {
return RLP.decode(Buffer.from(decodeBase64Check(assertedType(encodedTx, 'tx'))))
}

/**
Expand Down

0 comments on commit 883819c

Please sign in to comment.