@@ -5,7 +5,7 @@ describe("signaturePrepareRoute", () => {
5
5
test ( "Prepare a signature with upload, no uid, no royalty/sale recipients" , async ( ) => {
6
6
const { engine, backendWallet } = await setup ( ) ;
7
7
8
- const res = await engine . erc721 . erc721SignaturePrepare (
8
+ const res = await engine . erc721 . signaturePrepare (
9
9
"84532" ,
10
10
"0x5002e3bF97F376Fe0480109e26c0208786bCDDd4" ,
11
11
{
@@ -138,7 +138,7 @@ describe("signaturePrepareRoute", () => {
138
138
test ( "Prepare a signature with provided hex uid" , async ( ) => {
139
139
const { engine, backendWallet } = await setup ( ) ;
140
140
141
- const res = await engine . erc721 . erc721SignaturePrepare (
141
+ const res = await engine . erc721 . signaturePrepare (
142
142
"84532" ,
143
143
"0x5002e3bF97F376Fe0480109e26c0208786bCDDd4" ,
144
144
{
@@ -153,31 +153,25 @@ describe("signaturePrepareRoute", () => {
153
153
expect ( res . result . mintPayload . uid ) . toEqual (
154
154
"0x25d29226fc7c310ed308c1eea8a3ed2d9f660d873ba6348b6649da4cae3877a4" ,
155
155
) ;
156
- expect ( res . result . mintPayload . uid ) . toEqual (
157
- "0x25d29226fc7c310ed308c1eea8a3ed2d9f660d873ba6348b6649da4cae3877a4" ,
158
- ) ;
159
156
} ) ;
160
157
161
158
test ( "Prepare a signature with string uid" , async ( ) => {
162
159
const { engine, backendWallet } = await setup ( ) ;
163
160
164
- const res = await engine . erc721 . erc721SignaturePrepare (
161
+ const res = await engine . erc721 . signaturePrepare (
165
162
"84532" ,
166
163
"0x5002e3bF97F376Fe0480109e26c0208786bCDDd4" ,
167
164
{
168
165
metadata : "ipfs://..." ,
169
166
validityEndTimestamp : 1729194714 ,
170
167
validityStartTimestamp : 1728589914 ,
171
168
to : backendWallet ,
172
- uid : "my-test-uuid" ,
169
+ uid : "my-really-long-test-uuid-my-really-long-test-uuid-my-really-long- test-uuid" ,
173
170
} ,
174
171
) ;
175
172
176
173
expect ( res . result . mintPayload . uid ) . toEqual (
177
- "0x6d792d746573742d757569640000000000000000000000000000000000000000" ,
178
- ) ;
179
- expect ( res . result . mintPayload . uid ) . toEqual (
180
- "0x6d792d746573742d757569640000000000000000000000000000000000000000" ,
174
+ "0xa74a3badce5090a5afead99c9d80e08169468a2442a6f79692001aed81acf2bc" ,
181
175
) ;
182
176
} ) ;
183
177
@@ -186,7 +180,7 @@ describe("signaturePrepareRoute", () => {
186
180
187
181
let threw = false ;
188
182
try {
189
- await engine . erc721 . erc721SignaturePrepare (
183
+ await engine . erc721 . signaturePrepare (
190
184
"84532" ,
191
185
"0x5002e3bF97F376Fe0480109e26c0208786bCDDd4" ,
192
186
{
0 commit comments