We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63c0945 commit ec32c77Copy full SHA for ec32c77
txnbuild/invoke_host_function.go
@@ -48,7 +48,9 @@ type PaymentToContractParams struct {
48
}
49
50
// NewPaymentToContract constructs an invoke host operation to send a payment from a
51
-// source account to a destination smart contract
+// 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.
54
func NewPaymentToContract(params PaymentToContractParams) (InvokeHostFunction, error) {
55
asset, err := params.Asset.ToXDR()
56
if err != nil {
0 commit comments