hi i have a issue try to deploy a contract on remix.ethereum and get an error. Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing "SPDX-License-Identifier: " to each source file. Use "SPDX-License-Identifier: UNLICENSED" for non-open-source code. Please see https://spdx.org for more information. --> ColdKoala.sol
Warning: Source file does not specify required compiler version! Consider adding "pragma solidity ^0.8.4;" --> ColdKoala.sol
Warning: Source file does not specify required compiler version! Consider adding "pragma solidity ^0.8.4;" --> ColdKoala.sol
Jun 12, 2021, 3:08 AM
info already in the contract
Jun 12, 2021, 3:09 AM
dm
Jun 12, 2021, 3:14 AM
done
Jun 12, 2021, 3:14 AM
Add a comment to the start of the file like this:
// SPDX-License-Identifier: MIT (or whichever you want)
// SPDX-License-Identifier: MIT (or whichever you want)
And if you have many of SPDX comments remove the extra ones
Jun 12, 2021, 3:18 AM
wont work
which portal i should use
i want to build a smart contract libary so i take contract and test run them
https://bscscan.com/address/0x1bfe24e7fb1d3b2dffd9c1d49372b07bc6fda829#code
Jun 12, 2021, 3:26 AM
I don't even know what this line of code make sense, I just add this same line in every code
Jun 12, 2021, 7:01 AM
Some solidity convention, you literally set the software license the contract use, but nobody respects it anyways /shrug
Jun 12, 2021, 7:02 AM
Will it be useful to me when I will move forward to real time development?
function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
_ownerAddress = address(0);
}
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
_ownerAddress = address(0);
}
is this fake renounce?
and why?
Jun 12, 2021, 7:04 AM