-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add all signers to the Transaction when serializing with ToStackItem #2460
Comments
Why do you need to fetch the signers? I think we should use |
|
I'd say that this asymmetry contributes a lot to the fact that people just don't understand that there can be multiple signers in each transaction. And they're also missing scopes completely. So they see this "transaction" (but really just a part of it) returned by Although of course people must use |
Fixed by #2685 |
Summary or problem description
I was looking for a way to fetch the transaction signers in a contract invocation. I thought I could get them from the
Transaction
returned byRuntime.GetScriptContainer()
, but thatTransaction
object only contains the hash of the sender, not of any other signers. CheckingTransaction.ToStackItem()
shows that the signers are explicitly left out of the returned stack item.What's the reason for this.
Do you have any solution you want to propose?
Add all signers to the stack item returned from
Transaction.ToStackItem()
.Neo Version
Neo N3 RC2
The text was updated successfully, but these errors were encountered: