Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
ink
Commits
9589899b
Commit
9589899b
authored
Jun 25, 2019
by
Andrew Jones
Committed by
Hero Bird
Jun 25, 2019
Browse files
[cli] fix println usage in new contract template (#130)
parent
27087f20
Changes
1
Hide whitespace changes
Inline
Side-by-side
cli/template/src/lib.rs
View file @
9589899b
#![cfg_attr(not(any(test,
feature
=
"std"
)),
no_std)]
use
ink_core
::{
env
::
println
,
memory
::
format
,
storage
,
};
...
...
@@ -33,7 +32,7 @@ contract! {
/// Returns the current state.
pub
(
external
)
fn
get
(
&
self
)
->
bool
{
println
(
&
format!
(
"Storage Value: {:?}"
,
*
self
.value
));
env
.
println
(
&
format!
(
"Storage Value: {:?}"
,
*
self
.value
));
*
self
.value
}
}
...
...
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