Skip to content

Commit

Permalink
Release 0.0.0-beta.1: added payout amount to metadata/image, updated …
Browse files Browse the repository at this point in the history
…README
  • Loading branch information
0xStabby committed Dec 31, 2023
1 parent 0470c96 commit 0e4c853
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# erc5725svg: Transferrable Vesting NFT with OnChain Metadata/SVG.
# erc5725svg: ERC5725 extension for on chain svgs from data
[![lint & test](https://github.com/ERC-5725/ERC-5725-reference/actions/workflows/lint-test.yml/badge.svg)](https://github.com/ERC-5725/ERC-5725-reference/actions/workflows/lint-test.yml)
[![Docs](https://img.shields.io/badge/docs-%F0%9F%93%84-yellow)](./docs/)
[![License](https://img.shields.io/badge/License-GPLv3-green.svg)](https://www.gnu.org/licenses/gpl-3.0)
Expand Down
7 changes: 4 additions & 3 deletions contracts/extensions/ERC5725svg.sol
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ abstract contract ERC5725svg is ERC5725 {
}

function getTraits(uint id) public view returns (OnChainDataStructs.Trait[] memory) {
OnChainDataStructs.Trait[] memory result = new OnChainDataStructs.Trait[](3);
OnChainDataStructs.Trait[] memory result = new OnChainDataStructs.Trait[](4);
result[0] = OnChainDataStructs.Trait("payoutToken", string.concat("0x", _toAsciiString(_payoutToken(id))));
result[1] = OnChainDataStructs.Trait("startTime", Strings.toString(_startTime(id)));
result[2] = OnChainDataStructs.Trait("endTime", Strings.toString(_endTime(id)));
result[1] = OnChainDataStructs.Trait("payout", Strings.toString(_payout(id)));
result[2] = OnChainDataStructs.Trait("startTime", Strings.toString(_startTime(id)));
result[3] = OnChainDataStructs.Trait("endTime", Strings.toString(_endTime(id)));
return result;
}

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "erc5725svg",
"version": "0.0.0-beta.0",
"description": "Transferrable Vesting NFT with OnChain Metadata/SVG.",
"version": "0.0.0-beta.1",
"description": "ERC5725 extension for on chain svgs from data",
"files": [
"README.md",
"contracts/ERC5725.sol",
Expand Down

0 comments on commit 0e4c853

Please sign in to comment.