@@ -10,7 +10,6 @@ const firstTokenId = 5042n;
10
10
const secondTokenId = 79217n ;
11
11
const nonExistentTokenId = 13n ;
12
12
const fourthTokenId = 4n ;
13
- const baseURI = 'https://api.example.com/v1/' ;
14
13
15
14
const RECEIVER_MAGIC_VALUE = '0x150b7a02' ;
16
15
@@ -936,31 +935,6 @@ function shouldBehaveLikeERC721Metadata(name, symbol) {
936
935
. to . be . revertedWithCustomError ( this . token , 'ERC721NonexistentToken' )
937
936
. withArgs ( nonExistentTokenId ) ;
938
937
} ) ;
939
-
940
- describe ( 'base URI' , function ( ) {
941
- beforeEach ( function ( ) {
942
- if ( ! this . token . interface . hasFunction ( 'setBaseURI' ) ) {
943
- this . skip ( ) ;
944
- }
945
- } ) ;
946
-
947
- it ( 'base URI can be set' , async function ( ) {
948
- await this . token . setBaseURI ( baseURI ) ;
949
- expect ( await this . token . baseURI ( ) ) . to . equal ( baseURI ) ;
950
- } ) ;
951
-
952
- it ( 'base URI is added as a prefix to the token URI' , async function ( ) {
953
- await this . token . setBaseURI ( baseURI ) ;
954
- expect ( await this . token . tokenURI ( firstTokenId ) ) . to . equal ( baseURI + firstTokenId . toString ( ) ) ;
955
- } ) ;
956
-
957
- it ( 'token URI can be changed by changing the base URI' , async function ( ) {
958
- await this . token . setBaseURI ( baseURI ) ;
959
- const newBaseURI = 'https://api.example.com/v2/' ;
960
- await this . token . setBaseURI ( newBaseURI ) ;
961
- expect ( await this . token . tokenURI ( firstTokenId ) ) . to . equal ( newBaseURI + firstTokenId . toString ( ) ) ;
962
- } ) ;
963
- } ) ;
964
938
} ) ;
965
939
} ) ;
966
940
}
0 commit comments