This PR resolves the existing issues with smart contract management. The issues and their resolutions are mentioned below.
Issues:
Missing deployer and executor signatures from block
GetSmartContractToken updating token state to TokenIsGenerated, regardless the actual token state
Token deployed and token executed block were storing transaction type as TokenGeneratedType
This PR is Resolving:
Adding deployer and executor signatures as initiator signature with token chain key '12'
Removing unwanted token state updation from the function GetSmartContractToken
Token deployed and token executed block are storing transaction type as TokenDeployedType and TokenExecutedType, respectively.
Note: Please note that, depending on the transaction type, whoever is initiating a transaction is a initiator. In case of RBT transfer, sender is initiator; in case of smart contract deploy, deployer is initiator; and in case of smart contract execution, executor is initiator. Since all three kinds of initiators are independependent of each other, they are being stored with the same token chain key i.e., '12'. Samples of each of the three initiator signatures are provided below.
This PR resolves the existing issues with smart contract management. The issues and their resolutions are mentioned below.
Issues:
GetSmartContractToken
updating token state toTokenIsGenerated
, regardless the actual token stateTokenGeneratedType
This PR is Resolving:
GetSmartContractToken
TokenDeployedType
andTokenExecutedType
, respectively.Note: Please note that, depending on the transaction type, whoever is initiating a transaction is a initiator. In case of RBT transfer, sender is initiator; in case of smart contract deploy, deployer is initiator; and in case of smart contract execution, executor is initiator. Since all three kinds of initiators are independependent of each other, they are being stored with the same token chain key i.e., '12'. Samples of each of the three initiator signatures are provided below.
Sender signature in RBT TRansfer block:
Deployer signature in smart contract deploy block:
Executor signature in smart contract execute block: