Skip to content

Commit ec32c77

Browse files
committed
update comment
1 parent 63c0945 commit ec32c77

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

txnbuild/invoke_host_function.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ type PaymentToContractParams struct {
4848
}
4949

5050
// NewPaymentToContract constructs an invoke host operation to send a payment from a
51-
// source account to a destination smart contract
51+
// an account to a destination smart contract. Note the account sending the payment
52+
// must be the source account of the operation because the returned invoke host operation
53+
// will use the source account as the auth credentials.
5254
func NewPaymentToContract(params PaymentToContractParams) (InvokeHostFunction, error) {
5355
asset, err := params.Asset.ToXDR()
5456
if err != nil {

0 commit comments

Comments
 (0)