Skip to content

Commit a1bf626

Browse files
committed
Fix residual bugs from implementing shard module packages
1 parent 0b30de8 commit a1bf626

File tree

2 files changed

+17
-18
lines changed

2 files changed

+17
-18
lines changed

primitives/epochtransition.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"bytes"
55
"encoding/binary"
66
"errors"
7-
"fmt"
87
"github.com/prysmaticlabs/go-ssz"
98
"math"
109

wallet/wallet.go

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,16 @@ func (w *Wallet) RedeemPremine(to address.Address) error {
4141
return err
4242
}
4343

44-
tx := transfer.RedeemTransaction{
44+
_ = transfer.RedeemTransaction{
4545
ToPubkeyHash: toPkh,
4646
}
4747

48-
_, err = w.RPCClient.SubmitTransaction(context.Background(), &pb.ShardTransactionSubmission{
49-
ShardID: 0,
50-
Transaction: &pb.ShardTransaction{
51-
TransactionData: tx.Serialize(),
52-
},
53-
})
48+
//_, err = w.RPCClient.SubmitTransaction(context.Background(), &pb.ShardTransactionSubmission{
49+
// ShardID: 0,
50+
// Transaction: &pb.ShardTransaction{
51+
// TransactionData: tx.Serialize(),
52+
// },
53+
//})
5454

5555
return err
5656
}
@@ -87,21 +87,21 @@ func (w *Wallet) SendToAddress(from address.Address, to address.Address, amount
8787
return fmt.Errorf("could not find key for address: %s", from)
8888
}
8989

90-
st, err := key.keypair.Transfer(0, key.CurrentNonce, to, amount)
90+
_, err := key.keypair.Transfer(0, key.CurrentNonce, to, amount)
9191
if err != nil {
9292
return err
9393
}
9494

95-
_, err = w.RPCClient.SubmitTransaction(context.Background(), &pb.ShardTransactionSubmission{
96-
ShardID: 0,
97-
Transaction: &pb.ShardTransaction{
98-
TransactionData: st.Serialize(),
99-
},
100-
})
95+
//_, err = w.RPCClient.SubmitTransaction(context.Background(), &pb.ShardTransactionSubmission{
96+
// ShardID: 0,
97+
// Transaction: &pb.ShardTransaction{
98+
// TransactionData: st.Serialize(),
99+
// },
100+
//})
101101

102-
if err != nil {
103-
return err
104-
}
102+
//if err != nil {
103+
// return err
104+
//}
105105

106106
w.Keystore[from].CurrentNonce++
107107

0 commit comments

Comments
 (0)