algo-builder: TransactionType.DeploySSC does not add app to store
Hi, I have been trying to run test cases that involve Atomic Transfers. However, when I try to add an application using TransactionType.DeploySSC it executes but the app is not added/deployed to the store.
<ref *1> Runtime {
store: {
accounts: Map(1) {
'6JHI7HVPHRALW3JO5NMFAKUNJVLLV7NTNC3D645MLYNJ7EJWVDVRCUIQO4' => [AccountStore]
},
globalApps: Map(0) {},
assetDefs: Map(0) {}
},
When I try to add the same Stateful Smart Contract using the runtime.addApp function, it works properly resulting in this:
<ref *1> Runtime {
store: {
accounts: Map(1) {
'XDKZ6KLRFR7WD4LAKAAKZ6FUOOUHEFOZ6SANFQ2CHTE4HI437HLQRPTX3Q' => [AccountStore]
},
globalApps: Map(1) {
1 => 'XDKZ6KLRFR7WD4LAKAAKZ6FUOOUHEFOZ6SANFQ2CHTE4HI437HLQRPTX3Q'
},
assetDefs: Map(0) {}
},
This is the code I have written in order to deploy an app, I’m quite sure it’s correct but I may be wrong once again:
runtime.executeTx(
{
type: types.TransactionType.DeploySSC,
sign: types.SignType.SecretKey,
fromAccount: master.account,
approvalProgram: approvalProgram,
globalBytes: 5,
globalInts: 4,
localBytes: 0,
localInts: 0,
appArgs: [
"int:0",
"int:25412621"
],
payFlags: { totalFee: 1000 }
}
)
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 29 (18 by maintainers)
That fixed it! Thanks for all the help!