Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
I
ink
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
parity
ink
Commits
b0bd3025
Commit
b0bd3025
authored
Feb 13, 2019
by
Hero Bird
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[pdsl_model] Fix some minor path problems in state! and messages!
parent
9ce3d578
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
model/src/msg.rs
model/src/msg.rs
+1
-1
model/src/state.rs
model/src/state.rs
+3
-3
No files found.
model/src/msg.rs
View file @
b0bd3025
...
...
@@ -29,7 +29,7 @@ macro_rules! messages {
#[derive(Copy,
Clone)]
struct
$msg_name
;
impl
crate
::
msg
::
Message
for
$msg_name
{
impl
pdsl_model
::
Message
for
$msg_name
{
type
Input
=
(
$
(
$param_ty
),
*
);
type
Output
=
$ret_ty
;
...
...
model/src/state.rs
View file @
b0bd3025
...
...
@@ -45,8 +45,8 @@ macro_rules! state {
impl
pdsl_core
::
storage
::
Flush
for
$state_name
{
fn
flush
(
&
mut
self
)
{
$
(
self
.
$field_name
.flush
()
;
)
,
*
self
.
$field_name
.flush
()
)
;
*
}
}
...
...
@@ -64,7 +64,7 @@ macro_rules! state {
}
}
impl
pdsl_model
::
state
::
ContractState
for
$state_name
{
impl
pdsl_model
::
ContractState
for
$state_name
{
const
NAME
:
&
'static
[
u8
]
=
stringify!
(
$state_name
)
.as_bytes
();
}
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment