瀏覽代碼

Add NFT deploy script

Csongor Kiss 3 年之前
父節點
當前提交
c01dd93adb
共有 1 個文件被更改,包括 11 次插入0 次删除
  1. 11 0
      ethereum/scripts/deploy_nft_bridge.js

+ 11 - 0
ethereum/scripts/deploy_nft_bridge.js

@@ -0,0 +1,11 @@
+const BridgeImplementation = artifacts.require("NFTBridgeImplementation");
+module.exports = async function(callback) {
+  try {
+    const bridge = (await BridgeImplementation.new());
+    console.log('tx: ' + bridge.transactionHash);
+    console.log('NFTBridge address: ' + bridge.address);
+    callback();
+  } catch (e) {
+    callback(e);
+  }
+};