This repository has been archived by the owner on Jan 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 199
Support for loom-network #405
Labels
Comments
i change the function getNodeVersion of "zos-lib/lib/utils/Transactions.js",and it can be work:
|
can be run "zos push ..." after i change the getNodeVersion code.but it still have an error after created proxy when get implementation of the contract.problem is in the function getStorageAt(position){...}, provider did not support "web3_getStorageAt()" |
Need Loom ( Loom Issue: loomnetwork/loom-js#306
const { readFileSync } = require('fs')
const LoomTruffleProvider = require('loom-truffle-provider')
const chainId = 'extdev-plasma-us1'
const writeUrl = 'http://extdev-plasma-us1.dappchains.com:80/rpc'
const readUrl = 'http://extdev-plasma-us1.dappchains.com:80/query'
// ./privateKey file contains a base64 encoded key generated by the command:
// loom genkey -a publicKey -k privateKey
const privateKey = readFileSync('./privateKey', 'utf-8')
const loomTruffleProvider = new LoomTruffleProvider(chainId, writeUrl, readUrl, privateKey)
// Create 10 extra accounts, useful for tests
loomTruffleProvider.createExtraAccounts(10)
const loomProvider = loomTruffleProvider.getProviderEngine()
loomProvider.addCustomMethod('web3_clientVersion', payload => {
return 'Loom/v1.0.0/loom-js'
})
module.exports = {
networks: {
extdev_plasma_us1: {
provider: function() {
return loomTruffleProvider
},
networkId: '9545242630824'
},
},
}; Topic in Community Forum: https://forum.openzeppelin.com/t/loom-support/1239 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
hello, i was tried zos and openzeppelin on last 2 month,they are very good.for now i already deploied to our program.but as the gas reason,we want to deploy zos program to loom-network.the problem is promopt the error,as "web3 version error".so my problem is :
does Zos support loom-network?and how to?
i try truffle migrate,and can deploy to loom-network.
The text was updated successfully, but these errors were encountered: