Commit 17fd88d 1 parent 0a2c7cf commit 17fd88d Copy full SHA for 17fd88d
File tree 5 files changed +5
-5
lines changed
crates/lang/tests/ui/contract/pass
5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ mod erc20 {
58
58
/// Creates a new ERC-20 contract with the specified initial supply.
59
59
#[ ink( constructor) ]
60
60
pub fn new ( initial_supply : Balance ) -> Self {
61
- ink_lang:: codegen :: initialize_contract ( |contract| {
61
+ ink_lang:: utils :: initialize_contract ( |contract| {
62
62
Self :: new_init ( contract, initial_supply)
63
63
} )
64
64
}
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ mod erc721 {
79
79
pub fn new ( ) -> Self {
80
80
// This call is required in order to correctly initialize the
81
81
// `Mapping`s of our contract.
82
- ink_lang:: codegen :: initialize_contract ( |_| { } )
82
+ ink_lang:: utils :: initialize_contract ( |_| { } )
83
83
}
84
84
85
85
/// Returns the balance of the owner.
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ mod erc721 {
131
131
pub fn new ( ) -> Self {
132
132
// This call is required in order to correctly initialize the
133
133
// `Mapping`s of our contract.
134
- ink_lang:: codegen :: initialize_contract ( |_| { } )
134
+ ink_lang:: utils :: initialize_contract ( |_| { } )
135
135
}
136
136
137
137
/// Returns the balance of the owner.
Original file line number Diff line number Diff line change @@ -281,7 +281,7 @@ mod multisig {
281
281
/// If `requirement` violates our invariant.
282
282
#[ ink( constructor) ]
283
283
pub fn new ( requirement : u32 , mut owners : Vec < AccountId > ) -> Self {
284
- ink_lang:: codegen :: initialize_contract ( |contract : & mut Self | {
284
+ ink_lang:: utils :: initialize_contract ( |contract : & mut Self | {
285
285
owners. sort_unstable ( ) ;
286
286
owners. dedup ( ) ;
287
287
ensure_requirement_is_valid ( owners. len ( ) as u32 , requirement) ;
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ mod erc20 {
97
97
/// Creates a new ERC-20 contract with the specified initial supply.
98
98
#[ ink( constructor) ]
99
99
pub fn new ( initial_supply : Balance ) -> Self {
100
- ink_lang:: codegen :: initialize_contract ( |contract| {
100
+ ink_lang:: utils :: initialize_contract ( |contract| {
101
101
Self :: new_init ( contract, initial_supply)
102
102
} )
103
103
}
You can’t perform that action at this time.
0 commit comments