You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@
6
6
7
7
We are thrilled to have you join us in building unique discoveries with [Scroll Canvas](https://scroll.io/canvas), a new product designed for ecosystem projects to interact with users in a more tailored way.
8
8
9
-
Try Canvas at https://scroll.io/canvas
9
+
Try Canvas at [scroll.io/canvas](https://scroll.io/canvas)
if (!super.onIssueBadge(attestation)) return false;
201
201
202
202
bytes memory payload = getPayload(attestation);
203
-
(uint8 level) = decodePayloadData(payload);
203
+
(uint8 level) = decodePayloadData(payload);
204
204
205
205
if (level > 10) {
206
206
revert InvalidLevel();
207
-
}
207
+
}
208
208
209
209
return true;
210
210
}
@@ -214,20 +214,21 @@ You can also use the custom payload when constructing the token URI (in `badgeTo
214
214
This is particularly useful for badges that generate different token URIs based on each badge using [Data URLs](https://developer.mozilla.org/en-US/docs/Web/URI/Schemes/data):
215
215
216
216
```solidity
217
-
218
217
/// @inheritdoc ScrollBadge
219
-
function badgeTokenURI(bytes32 uid) public pure override returns (string memory) {
220
-
uint8 level = getCurrentLevel(uid);
221
-
string memory name = string(abi.encode("Level #", Strings.toString(level)));
222
-
string memory description = "Level Badge";
223
-
string memory image = ""; // IPFS, HTTP, or data URL
0 commit comments