@@ -22,7 +22,7 @@ Generated by [AVA](https://avajs.dev).
2222 #[contractimpl]␊
2323 impl MyToken {␊
2424 pub fn __constructor(e: &Env) {␊
25- let uri = String::from_str(e, "www.mytoken.com");␊
25+ let uri = String::from_str(e, "https:// www.mytoken.com");␊
2626 let name = String::from_str(e, "MyToken");␊
2727 let symbol = String::from_str(e, "MTK");␊
2828 Base::set_metadata(e, uri, name, symbol);␊
@@ -55,7 +55,7 @@ Generated by [AVA](https://avajs.dev).
5555 #[contractimpl]␊
5656 impl MyToken {␊
5757 pub fn __constructor(e: &Env) {␊
58- let uri = String::from_str(e, "www.mytoken.com");␊
58+ let uri = String::from_str(e, "https:// www.mytoken.com");␊
5959 let name = String::from_str(e, "MyToken");␊
6060 let symbol = String::from_str(e, "MTK");␊
6161 Base::set_metadata(e, uri, name, symbol);␊
@@ -98,7 +98,7 @@ Generated by [AVA](https://avajs.dev).
9898 #[contractimpl]␊
9999 impl MyToken {␊
100100 pub fn __constructor(e: &Env, owner: Address) {␊
101- let uri = String::from_str(e, "www.mytoken.com");␊
101+ let uri = String::from_str(e, "https:// www.mytoken.com");␊
102102 let name = String::from_str(e, "MyToken");␊
103103 let symbol = String::from_str(e, "MTK");␊
104104 Base::set_metadata(e, uri, name, symbol);␊
@@ -168,7 +168,7 @@ Generated by [AVA](https://avajs.dev).
168168 #[contractimpl]␊
169169 impl MyToken {␊
170170 pub fn __constructor(e: &Env, owner: Address) {␊
171- let uri = String::from_str(e, "www.mytoken.com");␊
171+ let uri = String::from_str(e, "https:// www.mytoken.com");␊
172172 let name = String::from_str(e, "MyToken");␊
173173 let symbol = String::from_str(e, "MTK");␊
174174 Base::set_metadata(e, uri, name, symbol);␊
@@ -254,7 +254,7 @@ Generated by [AVA](https://avajs.dev).
254254 #[contractimpl]␊
255255 impl MyToken {␊
256256 pub fn __constructor(e: &Env, owner: Address) {␊
257- let uri = String::from_str(e, "www.mytoken.com");␊
257+ let uri = String::from_str(e, "https:// www.mytoken.com");␊
258258 let name = String::from_str(e, "MyToken");␊
259259 let symbol = String::from_str(e, "MTK");␊
260260 Base::set_metadata(e, uri, name, symbol);␊
@@ -303,7 +303,7 @@ Generated by [AVA](https://avajs.dev).
303303 #[contractimpl]␊
304304 impl MyToken {␊
305305 pub fn __constructor(e: &Env) {␊
306- let uri = String::from_str(e, "www.mytoken.com");␊
306+ let uri = String::from_str(e, "https:// www.mytoken.com");␊
307307 let name = String::from_str(e, "MyToken");␊
308308 let symbol = String::from_str(e, "MTK");␊
309309 Base::set_metadata(e, uri, name, symbol);␊
@@ -347,7 +347,7 @@ Generated by [AVA](https://avajs.dev).
347347 #[contractimpl]␊
348348 impl MyToken {␊
349349 pub fn __constructor(e: &Env, owner: Address) {␊
350- let uri = String::from_str(e, "www.mytoken.com");␊
350+ let uri = String::from_str(e, "https:// www.mytoken.com");␊
351351 let name = String::from_str(e, "MyToken");␊
352352 let symbol = String::from_str(e, "MTK");␊
353353 Base::set_metadata(e, uri, name, symbol);␊
@@ -405,7 +405,7 @@ Generated by [AVA](https://avajs.dev).
405405 #[contractimpl]␊
406406 impl MyToken {␊
407407 pub fn __constructor(e: &Env, owner: Address) {␊
408- let uri = String::from_str(e, "www.mytoken.com");␊
408+ let uri = String::from_str(e, "https:// www.mytoken.com");␊
409409 let name = String::from_str(e, "MyToken");␊
410410 let symbol = String::from_str(e, "MTK");␊
411411 Base::set_metadata(e, uri, name, symbol);␊
@@ -467,7 +467,7 @@ Generated by [AVA](https://avajs.dev).
467467 #[contractimpl]␊
468468 impl MyToken {␊
469469 pub fn __constructor(e: &Env, owner: Address) {␊
470- let uri = String::from_str(e, "www.mytoken.com");␊
470+ let uri = String::from_str(e, "https:// www.mytoken.com");␊
471471 let name = String::from_str(e, "MyToken");␊
472472 let symbol = String::from_str(e, "MTK");␊
473473 Base::set_metadata(e, uri, name, symbol);␊
@@ -553,7 +553,7 @@ Generated by [AVA](https://avajs.dev).
553553 #[contractimpl]␊
554554 impl MyToken {␊
555555 pub fn __constructor(e: &Env, owner: Address) {␊
556- let uri = String::from_str(e, "www.mytoken.com");␊
556+ let uri = String::from_str(e, "https:// www.mytoken.com");␊
557557 let name = String::from_str(e, "MyToken");␊
558558 let symbol = String::from_str(e, "MTK");␊
559559 Base::set_metadata(e, uri, name, symbol);␊
@@ -647,7 +647,7 @@ Generated by [AVA](https://avajs.dev).
647647 #[contractimpl]␊
648648 impl MyToken {␊
649649 pub fn __constructor(e: &Env) {␊
650- let uri = String::from_str(e, "www.mytoken.com");␊
650+ let uri = String::from_str(e, "https:// www.mytoken.com");␊
651651 let name = String::from_str(e, "MyToken");␊
652652 let symbol = String::from_str(e, "MTK");␊
653653 Base::set_metadata(e, uri, name, symbol);␊
@@ -683,7 +683,7 @@ Generated by [AVA](https://avajs.dev).
683683 #[contractimpl]␊
684684 impl MyToken {␊
685685 pub fn __constructor(e: &Env, owner: Address) {␊
686- let uri = String::from_str(e, "www.mytoken.com");␊
686+ let uri = String::from_str(e, "https:// www.mytoken.com");␊
687687 let name = String::from_str(e, "MyToken");␊
688688 let symbol = String::from_str(e, "MTK");␊
689689 Base::set_metadata(e, uri, name, symbol);␊
@@ -739,7 +739,7 @@ Generated by [AVA](https://avajs.dev).
739739 #[contractimpl]␊
740740 impl MyToken {␊
741741 pub fn __constructor(e: &Env, owner: Address) {␊
742- let uri = String::from_str(e, "www.mytoken.com");␊
742+ let uri = String::from_str(e, "https:// www.mytoken.com");␊
743743 let name = String::from_str(e, "MyToken");␊
744744 let symbol = String::from_str(e, "MTK");␊
745745 Base::set_metadata(e, uri, name, symbol);␊
@@ -842,7 +842,7 @@ Generated by [AVA](https://avajs.dev).
842842 #[contractimpl]␊
843843 impl CustomToken {␊
844844 pub fn __constructor(e: &Env, owner: Address) {␊
845- let uri = String::from_str(e, "www.mytoken.com");␊
845+ let uri = String::from_str(e, "https:// www.mytoken.com");␊
846846 let name = String::from_str(e, "Custom $ Token");␊
847847 let symbol = String::from_str(e, "MTK");␊
848848 Base::set_metadata(e, uri, name, symbol);␊
@@ -908,3 +908,36 @@ Generated by [AVA](https://avajs.dev).
908908 #[contractimpl]␊
909909 impl Ownable for CustomToken {}␊
910910 `
911+
912+ ## non-fungible custom token uri
913+
914+ > Snapshot 1
915+
916+ `// SPDX-License-Identifier: MIT␊
917+ // Compatible with OpenZeppelin Stellar Soroban Contracts ^0.4.1␊
918+ #![no_std]␊
919+ ␊
920+ use soroban_sdk::{contract, contractimpl, Env, String};␊
921+ use stellar_macros::default_impl;␊
922+ use stellar_tokens::non_fungible::{Base, NonFungibleToken};␊
923+ ␊
924+ #[contract]␊
925+ pub struct MyToken;␊
926+ ␊
927+ #[contractimpl]␊
928+ impl MyToken {␊
929+ pub fn __constructor(e: &Env) {␊
930+ let uri = String::from_str(e, "https://example.com/nfts/");␊
931+ let name = String::from_str(e, "MyToken");␊
932+ let symbol = String::from_str(e, "MTK");␊
933+ Base::set_metadata(e, uri, name, symbol);␊
934+ }␊
935+ }␊
936+ ␊
937+ #[default_impl]␊
938+ #[contractimpl]␊
939+ impl NonFungibleToken for MyToken {␊
940+ type ContractType = Base;␊
941+ ␊
942+ }␊
943+ `
0 commit comments