add comments

This commit is contained in:
apratt3377 2018-09-12 14:40:26 -04:00
parent cce5cc4273
commit 513c8c4720
1 changed files with 2 additions and 0 deletions

View File

@ -289,6 +289,8 @@ func (b *SimulatedBackend) SendTransaction(ctx context.Context, tx *types.Transa
return nil
}
// PreparePrivateTransaction replaces the payload data of the transaction with a
// commitment to turn it into a private tx.
func (b *SimulatedBackend) PreparePrivateTransaction(ctx context.Context, encodedTx hexutil.Bytes, privateFrom string, privateFor []string) (hexutil.Bytes, error) {
if len(privateFor) == 0 {
return nil, errors.New("need at least one private for")