Skip to content

Instantly share code, notes, and snippets.

View ILoomans's full-sized avatar
🚴
Cycling Everywhere

Ignace Loomans ILoomans

🚴
Cycling Everywhere
  • r3
  • London
View GitHub Profile
@ILoomans
ILoomans / gist:78f7a3b8c17820420aba007dca311a43
Created June 14, 2022 09:47
patch-package-react-native-bigInt-issue
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([
@ILoomans
ILoomans / deployGetBalance.js
Last active May 11, 2021 19:20
Ink contract error after two hours of substrate-node-deployment
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;