Appearance
Solidity API
PropsTokenSplitInternal
Internal contract for managing token splits
This contract provides internal functions for updating and retrieving token splits
_upsertTokenSplit
solidity
function _upsertTokenSplit(uint256 _tokenId, address _splitAddress) internalUpdates or inserts a token split for a given token ID
This function updates the split address for a specific token ID in the storage
Parameters
| Name | Type | Description |
|---|---|---|
| _tokenId | uint256 | The ID of the token for which to set the split |
| _splitAddress | address | The address to receive the split for the given token ID |
_getTokenSplit
solidity
function _getTokenSplit(uint256 _tokenId) internal view returns (address)Retrieves the split address for a given token ID
This function reads the split address from storage for the specified token ID
Parameters
| Name | Type | Description |
|---|---|---|
| _tokenId | uint256 | The ID of the token for which to get the split address |
Return Values
| Name | Type | Description |
|---|---|---|
| [0] | address | The address set to receive the split for the given token ID |