Comments (5)
I recently tried adding uint256(tokenId)
, which fixes the issue and does not actually increase size. It is now released on 2.3.2
from evm.
I'm sorry to hear that.
We strive to have as thoroughly documented source code as possible, which is the result of it. We need to have all function inputs named if we wish to document them.
So I'm sorry to say we can't remove this without impacting the documentation's quality.
from evm.
Perhaps you can modify it like this, and then it won't prompt unused during compilation:
/**
* @notice Used to retrieve the information about who shall receive royalties of a sale of the specified token and
* how much they will be.
* @param tokenId ID of the token for which the royalty info is being retrieved
* @param salePrice Price of the token sale
* @return receiver The beneficiary receiving royalties of the sale
* @return royaltyAmount The value of the royalties recieved by the `receiver` from the sale
*/
function royaltyInfo(
uint256 tokenId,
uint256 salePrice
)
external
view
virtual
override
returns (address receiver, uint256 royaltyAmount)
{
receiver = _royaltyRecipient;
royaltyAmount = (salePrice * _royaltyPercentageBps) / 10000;
tokenId;
}
from evm.
This might remove the warning, but it increases contract size (which is limited) and increases gas consumption (because of the read operation). For these reasons, we can't implement this.
from evm.
I actually gave it a try yesterday with an idea I had for a while. I duplicated the IERC2981
definition from OZ into a local file and added the right doc string there. Then, on the implementation I simply used inheritdoc
and did not set the name for the first parameter.
Surprisingly, the name tokenId
disappeared from all docs, which is a bigger evil IMO.
from evm.
Related Issues (20)
- When overwrites, forget to delete the corresponding element in `activeResourcePriorities` HOT 3
- maxSupply: possibility to mint unlimited number of NFTs HOT 2
- A friendly reminder that the small problem in LISENSE HOT 1
- Should `SetEquippableToAll(uint64 indexed partId)` be emitted when `_addEquippableAddresses` etc? HOT 3
- `RMRKCatalog` has no way to set `metadataURI` HOT 2
- Equipping into an NFT with 2 resources of same base HOT 15
- Add transferable flag HOT 1
- Cannot install `rmrk-team/evm-contract` HOT 2
- Some questions about `MultiResource_EIP` in `eip` branch HOT 3
- Feature request: emit eip-4906 MetadataUpdate event when primary asset changes HOT 2
- Duplicate check is needed in `addChild` HOT 4
- `safeNestTransfer` is redundant HOT 6
- Move the Etherscan verification istructions from Ropsten to Görli
- Remove the redundant _ from the variable HOT 3
- Should revert when try to transfer NFT to itself HOT 2
- After `_unnestChild`, position of exchanged child(last child) in `_posInChildArray` is not updated HOT 3
- Should `reclaimChild` need to check the child is not in `_pendingChildren` and `_children`? HOT 2
- Will that be more direct and intuitive if set the uninitialized priority to `2^16 - 1` in `_acceptChild`? HOT 1
- Moar Tests HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from evm.