浏览代码

fix error

Tony Boyle 3 月之前
父节点
当前提交
bcfe989722
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/pages/core/update.md

+ 3 - 1
src/pages/core/update.md

@@ -141,10 +141,12 @@ if (!collectionId) {
 
 
 const collection = await fetchCollection(umi, collectionId);
 const collection = await fetchCollection(umi, collectionId);
 
 
+const newCollectionId = publicKey("22222222222222222222222222222222")
+
 const updateTx = await update(umi, {
 const updateTx = await update(umi, {
   asset,
   asset,
   collection,
   collection,
-  newCollection: publicKey("22222222222222222222222222222222"),
+  newCollection: newCollectionId,
   newUpdateAuthority: updateAuthority('Collection', [newCollectionId]),
   newUpdateAuthority: updateAuthority('Collection', [newCollectionId]),
 }).sendAndConfirm(umi);
 }).sendAndConfirm(umi);
 ```
 ```