Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
python-cellframe
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cellframe
python-cellframe
Commits
5aecba88
Commit
5aecba88
authored
3 years ago
by
alexey.stratulat
Browse files
Options
Downloads
Patches
Plain Diff
[*] Fixed the function of getting a token emission from the datum.
parent
4a025e51
No related branches found
No related tags found
1 merge request
!73
Features-5386 to develop
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/cellframe-sdk/common/src/wrapping_dap_chain_datum.c
+2
-1
2 additions, 1 deletion
modules/cellframe-sdk/common/src/wrapping_dap_chain_datum.c
with
2 additions
and
1 deletion
modules/cellframe-sdk/common/src/wrapping_dap_chain_datum.c
+
2
−
1
View file @
5aecba88
...
...
@@ -56,6 +56,7 @@ PyObject *wrapping_dap_chain_datum_get_datum_token(PyObject *self, PyObject *arg
size_t
l_size_token
=
((
PyDapChainDatumObject
*
)
self
)
->
datum
->
header
.
data_size
;
obj_token
->
token
=
dap_chain_datum_token_read
(((
PyDapChainDatumObject
*
)
self
)
->
datum
->
data
,
&
l_size_token
);
return
(
PyObject
*
)
obj_token
;
}
else
{
PyErr_SetString
(
PyExc_Exception
,
"Due to the type of this datum, it is not possible to get the token datum."
);
return
NULL
;
...
...
@@ -79,7 +80,7 @@ PyObject *wrapping_dap_chain_datum_get_datum_token_emission(PyObject *self, PyOb
&
DapChainDatumTokenEmission_DapChainDatumTokenEmissionObjectType
);
PyObject_Dir
((
PyObject
*
)
obj_emission
);
size_t
l_token_emission_size
=
0
;
size_t
l_token_emission_size
=
((
PyDapChainDatumObject
*
)
self
)
->
datum
->
header
.
data_size
;
obj_emission
->
token_emission
=
dap_chain_datum_emission_read
(((
PyDapChainDatumObject
*
)
self
)
->
datum
->
data
,
&
l_token_emission_size
);
return
(
PyObject
*
)
obj_emission
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment