connect icon indicating copy to clipboard operation
connect copied to clipboard

Remove sponsored option from doStxTransfer

Open friedger opened this issue 4 years ago • 4 comments

I can't create a sponsored stx transfer transaction using doStxTransfer from connect-react. I can do a sponsored contract call.

I am not sure whether it is a problem with connect-react or with the stacks-wallet-web.

The UI shows tx fees and I guess that the tx would be broadcasted.

friedger avatar Sep 21 '21 08:09 friedger

@agraebe did you happen to update connect-react when adding sponsored transaction functionality in addition to connect?

markmhendrickson avatar Sep 21 '21 12:09 markmhendrickson

oh, I didn't cover connect-react

agraebe avatar Sep 21 '21 14:09 agraebe

Apparently, stx transfer txs can't be sponsored according to spec.

Then the options for doStxTransfer should not contain sponsored

friedger avatar Sep 22 '21 06:09 friedger

This is also something we should call out in our docs @pgray-hiro.

From SIP005:

Note that if a transaction contains a token-transfer payload, it MUST have only a standard authorization field. It cannot be sponsored.

agraebe avatar Sep 22 '21 15:09 agraebe