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

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

Loading…
Cancel
Save