Minor fixups
This commit is contained in:
parent
3141d07a41
commit
dad2d66fc8
|
@ -49,15 +49,6 @@ export class Expert extends ReputationHolder {
|
|||
return this;
|
||||
}
|
||||
|
||||
async submitPostViaNetwork(forumNode, post, stake) {
|
||||
// TODO: Include fee
|
||||
const postMessage = new PostMessage({ post, stake });
|
||||
await postMessage.sign(this.reputationKey);
|
||||
await this.actions.submitPostViaNetwork.log(this, forumNode);
|
||||
// For now, directly call forumNode.receiveMessage();
|
||||
await forumNode.receiveMessage(JSON.stringify(postMessage.toJSON()));
|
||||
}
|
||||
|
||||
async submitPostWithFee(postContent, poolOptions) {
|
||||
const post = await this.dao.forum.addPost(this.reputationPublicKey, postContent);
|
||||
await this.actions.submitPost.log(this, post);
|
||||
|
|
|
@ -191,7 +191,7 @@ export class Forum extends ReputationHolder {
|
|||
const authorVertex = authorEdge.to;
|
||||
const author = authorVertex.data;
|
||||
const { tokenId: authorTokenId } = authorEdge.data;
|
||||
this.dao.reputation.transfer(this.id, author.publicKey, authorTokenId);
|
||||
this.dao.reputation.transfer(this.id, author.reputationPublicKey, authorTokenId);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import { INCINERATOR_ADDRESS, mochaRun } from '../../../util/helpers.js';
|
||||
import { mochaRun } from '../../../util/helpers.js';
|
||||
import { INCINERATOR_ADDRESS } from '../../../util/constants.js';
|
||||
import { ForumTest } from './forum.test-util.js';
|
||||
|
||||
describe('Forum', function tests() {
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import { INCINERATOR_ADDRESS, mochaRun } from '../../../util/helpers.js';
|
||||
import { mochaRun } from '../../../util/helpers.js';
|
||||
import { INCINERATOR_ADDRESS } from '../../../util/constants.js';
|
||||
import { ForumTest } from './forum.test-util.js';
|
||||
|
||||
describe('Forum', function tests() {
|
||||
|
|
Loading…
Reference in New Issue