fix: examples
This commit is contained in:
parent
7160031807
commit
866619dcdc
|
@ -30,9 +30,7 @@ const run = async () => {
|
|||
|
||||
const resolvers = {
|
||||
Query: {
|
||||
myEvents: () => {
|
||||
return subspace.trackEvent(MyContractInstance, "MyEvent", {filter: {}, fromBlock: 1});
|
||||
}
|
||||
myEvents: () => subspace.trackEvent(MyContractInstance, "MyEvent", {filter: {}, fromBlock: 1})
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ export default {
|
|||
created: async function(){
|
||||
this.MyContractInstance = await MyContract.getInstance();
|
||||
|
||||
const subspace = new Subspace(web3.currentProvider);
|
||||
const subspace = new Subspace(web3);
|
||||
await subspace.init();
|
||||
|
||||
this.myEventObservable$ = subspace.trackEvent(this.MyContractInstance, "MyEvent", {filter: {}, fromBlock: 1 });
|
||||
|
|
Loading…
Reference in New Issue