Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
Merge pull request #610 from jimni1222/fixing
Browse files Browse the repository at this point in the history
Fixed error when check transaction type
  • Loading branch information
jimni1222 authored Mar 4, 2022
2 parents f9f2ae5 + 688d9b2 commit ee2c55d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/caver-core-method/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -430,8 +430,8 @@ const buildSendRequestFunc = (defer, sendSignedTx, sendTxCallback) => (payload,
} else if (key === 'account') {
tx.key = payload.params[0][key].getRLPEncodingAccountKey()
} else if (key === 'chainId') {
if (payload.params[0][key].type !== undefined && payload.params[0][key].type.includes('Ethereum')) {
tx[key] = payload.params[0][key].toObject()
if (payload.params[0].type !== undefined && payload.params[0].type.includes('Ethereum')) {
tx[key] = payload.params[0][key]
}
} else if (key === 'accessList') {
tx[key] = payload.params[0][key].toObject()
Expand Down

0 comments on commit ee2c55d

Please sign in to comment.