This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/node_modules/metro-react-native-babel-preset/src/configs/main.js b/node_modules/metro-react-native-babel-preset/src/configs/main.js | |
index 6d25b29..f76fb29 100644 | |
--- a/node_modules/metro-react-native-babel-preset/src/configs/main.js | |
+++ b/node_modules/metro-react-native-babel-preset/src/configs/main.js | |
@@ -124,11 +124,11 @@ const getPreset = (src, options) => { | |
extraPlugins.push([require("@babel/plugin-transform-async-to-generator")]); | |
} | |
- if (!isHermes && (isNull || src.indexOf("**") !== -1)) { | |
- extraPlugins.push([ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function deployContract(){ | |
const wsProvider = new WsProvider('ws://localhost:9944'); | |
let api = await ApiPromise.create({ provider: wsProvider, types }); | |
const keyring = new Keyring({ type: 'sr25519' }); | |
let wallet = keyring.addFromUri('//Bob', { name: 'Bob default' }); | |
const code = new CodePromise(api, ABI, WASM); | |
const constructorIndex = 0; | |
const gasLimit = 200000000000; |