I can successfully compile and migrate the gnosis-contract in my local chain (see attached console std output), import the gnosis.js library in an HTML page. I then open that webpage in the browser and operate from the WebInspector console.
fully call the Math methods and also create on ipFs the example event in the guide. When I try to create the centralizedOracle thought, I always get an exception:
const oracle = await gnosis.createCentralizedOracle(ipfsHash)
utils.js:287 Uncaught (in promise) TransactionError: CentralizedOracleFactory(0xcfeb..a601).createCentralizedOracle("Qme8yRqWZd5GhDcv2rs7ibvZGfF93ddXggBLVh6aggckjn")
failed with Error: VM Exception while processing transaction: revert Error: CentralizedOracleFactory(0xcfeb..a601).createCentralizedOracle("Qme8yRqWZd5GhDcv2rs7ibvZGfF93ddXggBLVh6aggckjn")
failed with Error: VM Exception while processing transaction: revert
at new TransactionError (file:///Users/marcoz/gnosis.js/dist/gnosis.js:8337:148)
at _callee3$ (file:///Users/marcoz/gnosis.js/dist/gnosis.js:7919:31)
at tryCatch (file:///Users/marcoz/gnosis.js/dist/gnosis.js:21746:40)
at Generator.invoke [as _invoke] (file:///Users/marcoz/gnosis.js/dist/gnosis.js:21980:22)
at Generator.prototype.(anonymous function) [as throw] (file:///Users/marcoz/gnosis.js/dist/gnosis.js:21798:21)
at step (file:///Users/marcoz/gnosis.js/dist/gnosis.js:8524:30)
at file:///Users/marcoz/gnosis.js/dist/gnosis.js:8537:13
at <anonymous>
TransactionError @ utils.js:287
_callee3$ @ utils.js:328
tryCatch @ runtime.js:62
invoke @ runtime.js:296
prototype.(anonymous function) @ runtime.js:114
step @ asyncToGenerator.js:17
(anonymous) @ asyncToGenerator.js:30
Promise rejected (async)
(anonymous) @ VM138:1
async function (async)
(anonymous) @ VM138:1
(anonymous) @ VM138:1
utils.js:287 Uncaught (in promise) Error: CentralizedOracleFactory(0xcfeb..a601).createCentralizedOracle("Qme8yRqWZd5GhDcv2rs7ibvZGfF93ddXggBLVh6aggckjn")
failed with Error: VM Exception while processing transaction: revert
at new TransactionError (file:///Users/marcoz/gnosis.js/dist/gnosis.js:8337:148)
at _callee3$ (file:///Users/marcoz/gnosis.js/dist/gnosis.js:7919:31)
at tryCatch (file:///Users/marcoz/gnosis.js/dist/gnosis.js:21746:40)
at Generator.invoke [as _invoke] (file:///Users/marcoz/gnosis.js/dist/gnosis.js:21980:22)
at Generator.prototype.(anonymous function) [as throw] (file:///Users/marcoz/gnosis.js/dist/gnosis.js:21798:21)
at step (file:///Users/marcoz/gnosis.js/dist/gnosis.js:8524:30)
at file:///Users/marcoz/gnosis.js/dist/gnosis.js:8537:13
at <anonymous>
net_version
eth_sendTransaction
Transaction: 0x1b96f3428c65b47d581ac643af8af60c1c8122fd19df131b3ef46ba7032502d6
Gas usage: 89527
Block Number: 14
Block Time: Sun Feb 11 2018 11:37:22 GMT+0100 (CET)
Runtime Error: revert