Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
use stmt moved to macro
  • Loading branch information
agryaznov committed Sep 1, 2022
commit 71ea6bf9ff2b047afe2036d29bc51d545136c149
1 change: 1 addition & 0 deletions crates/env/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ cfg_if::cfg_if! {
/// Prepend contract message call with value transfer. Used for tests in off-chain environment.
macro_rules! pay_with_call {
($con:ident . $msg:ident ( $($params:ty)? ) , $amt:expr) => {{
use ink_env::test::transfer_in;
transfer_in::<Environment>($amt);
$con.$msg($($params:ty)?)
}}
Expand Down
1 change: 0 additions & 1 deletion examples/contract-transfer/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ pub mod give_me {
#[cfg(test)]
mod tests {
use super::*;
use ink_env::test::transfer_in;
use ink_lang as ink;
use ink_lang::codegen::Env;

Expand Down