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

Commit

Permalink
Fix sendTransaction bug when calling VALUE_TRANSFER
Browse files Browse the repository at this point in the history
  • Loading branch information
hyeonLewis committed Feb 19, 2023
1 parent 84fae49 commit a3fd6dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/WalletTransfer2.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ class WalletTransfer2 extends Component<Props> {
await caver.klay.sendTransaction({
type: setType,
from: this.HRADataChange(),
data:'',
data: setType === 'SMART_CONTRACT_EXECUTION' ? '' : undefined,
to,
value: caver.utils.toWei(value, 'ether'),
gas: gas || DEFAULT_KLAY_TRANSFER_GAS,
Expand Down

0 comments on commit a3fd6dc

Please sign in to comment.