Skip to content

Commit

Permalink
🐛 Modify callers initialization for dynamic AssetTypes txs
Browse files Browse the repository at this point in the history
  • Loading branch information
andremacedopv committed Jan 17, 2023
1 parent 8449da7 commit 2111672
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion transactions/createAssetType.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ var CreateAssetType = Transaction{
Label: "Create Asset Type",
Description: "",
Method: "POST",
Callers: assets.GetAssetAdminsDynamicAssetType(),

MetaTx: true,
Args: ArgList{
Expand Down
1 change: 0 additions & 1 deletion transactions/deleteAssetType.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ var DeleteAssetType = Transaction{
Label: "Delete Asset Type",
Description: "",
Method: "POST",
Callers: assets.GetAssetAdminsDynamicAssetType(),

MetaTx: true,
Args: ArgList{
Expand Down
4 changes: 4 additions & 0 deletions transactions/txList.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ func FetchTx(txName string) *Transaction {
func InitTxList(l []Transaction) {
txList = append(l, basicTxs...)
if assets.GetEnabledDynamicAssetType() {
callers := assets.GetAssetAdminsDynamicAssetType()
for i := range dynamicAssetTypesTxs {
dynamicAssetTypesTxs[i].Callers = callers
}
txList = append(txList, dynamicAssetTypesTxs...)
}
}
1 change: 0 additions & 1 deletion transactions/updateAssetType.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ var UpdateAssetType = Transaction{
Label: "Update Asset Type",
Description: "",
Method: "POST",
Callers: assets.GetAssetAdminsDynamicAssetType(),

MetaTx: true,
Args: ArgList{
Expand Down

0 comments on commit 2111672

Please sign in to comment.