pull/1368/head
chao 5 years ago committed by Chao Ma
parent 292463ed22
commit 459a52cca5
  1. 6
      cmd/client/wallet/main.go

@ -714,15 +714,9 @@ func processTransferCommand() {
fromShard := uint32(shardID)
toShard := uint32(toShardID)
var tx *types.Transaction
if fromShard == toShard {
tx = types.NewTransaction(
state.nonce, receiverAddress, fromShard, amountBigInt,
gas, nil, inputData)
} else {
tx = types.NewCrossShardTransaction(
state.nonce, &receiverAddress, fromShard, toShard, amountBigInt,
gas, nil, inputData)
}
account, err := ks.Find(accounts.Account{Address: senderAddress})
if err != nil {

Loading…
Cancel
Save