-
Notifications
You must be signed in to change notification settings - Fork 443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace default off-chain engine with experimental one, remove old one #1144
Conversation
7771516
to
e5bf08c
Compare
e5bf08c
to
3dfc2c1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree. I think it is fine that it only supports the default env. The testing environment isn't a 100% match with the on chain environment anyways.
❤️ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two small questions. Once the CI is fixed it should be good to go
@@ -46,7 +46,7 @@ impl ReturnFlags { | |||
} | |||
|
|||
/// Returns the underlying `u32` representation. | |||
#[cfg(not(feature = "ink-experimental-engine"))] | |||
#[cfg(not(feature = "std"))] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does this need to be behind a feature flag?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In std
the function is never used, clippy
fails in std
otherwise.
examples/erc20/lib.rs
Outdated
} | ||
} | ||
|
||
struct PrefixedValue<'a, 'b, T> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why's this needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's used calculate the event topic hash, I've added a comment from trait-erc20
which uses the same structure.
Yeah, I'm also not happy with that and the way the tests are currently structured. Maybe we can do some broader refactoring as follow-ups.
🦑 📈 ink! Example Contracts ‒ Changes Report 📉 🦑These are the results when building the
Link to the run | Last update: Wed Mar 2 07:56:03 CET 2022 |
Why |
Follow-up to #1143.
The experimental off-chain env is currently limited in that it only supports
ink_env::DefaultEnvironment
, but IMHO the situation of us currently having two off-chain testing engines in every examples is worse.