adding another contract in current contract using aray is it complusory to push variable of array #1853
Unanswered
AAKASH-MUNDLIA
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Yes, if you need those |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
adding another contract in current contract using aray is it complusory to push variable of array
here my code ;
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./first.sol";
contract Storage{
lucky[] public nonlucky;
function cstorage() public{
lucky note = new lucky();
nonlucky.push(note);
}
}
is it complusory to add "note" if yes then why? =>>>>>> nonlucky.push(note);
Beta Was this translation helpful? Give feedback.
All reactions