@@ -41,16 +41,16 @@ func (w *Wallet) RedeemPremine(to address.Address) error {
41
41
return err
42
42
}
43
43
44
- tx : = transfer.RedeemTransaction {
44
+ _ = transfer.RedeemTransaction {
45
45
ToPubkeyHash : toPkh ,
46
46
}
47
47
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
+ // })
54
54
55
55
return err
56
56
}
@@ -87,21 +87,21 @@ func (w *Wallet) SendToAddress(from address.Address, to address.Address, amount
87
87
return fmt .Errorf ("could not find key for address: %s" , from )
88
88
}
89
89
90
- st , err := key .keypair .Transfer (0 , key .CurrentNonce , to , amount )
90
+ _ , err := key .keypair .Transfer (0 , key .CurrentNonce , to , amount )
91
91
if err != nil {
92
92
return err
93
93
}
94
94
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
+ // })
101
101
102
- if err != nil {
103
- return err
104
- }
102
+ // if err != nil {
103
+ // return err
104
+ // }
105
105
106
106
w .Keystore [from ].CurrentNonce ++
107
107
0 commit comments