You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, the problem here is that the transaction's raw data, and therefore the txID will need to be changed as a result of updating the transaction.
TronWeb handles this situation by taking a permissionId argument to its trx.multisign function, which if >0 where the transaction's contract doesn't have a Permission_id already, causes TronWeb to add the Permission_id to the contract before POSTing the transaction to wallet/getsignweight which then returns an updated transaction (in transaction.transaction) containing a corrected txID, which can then be signed.
This is how the code might look using tronapi to do the signing after this issue is fixed (in this case the wallet/getsignweight is only done on the first call to trx.sign):
When trying to do multi-signature using an 'active' permission you need to be able to set the Permission_id in the transaction's contract e.g.
However, the problem here is that the transaction's raw data, and therefore the txID will need to be changed as a result of updating the transaction.
TronWeb handles this situation by taking a permissionId argument to its trx.multisign function, which if >0 where the transaction's contract doesn't have a Permission_id already, causes TronWeb to add the Permission_id to the contract before POSTing the transaction to wallet/getsignweight which then returns an updated transaction (in transaction.transaction) containing a corrected txID, which can then be signed.
This is how the code might look using tronapi to do the signing after this issue is fixed (in this case the wallet/getsignweight is only done on the first call to trx.sign):
Something like this should be added to your examples scripts to show how multisign should be used.
The text was updated successfully, but these errors were encountered: