( ^ ʖ ^)
This commit is contained in:
parent
909cdc50b5
commit
7346f728e9
3 changed files with 0 additions and 16 deletions
|
@ -1,11 +1,7 @@
|
||||||
package Comment
|
package Comment
|
||||||
|
|
||||||
import (
|
import (
|
||||||
<<<<<<< HEAD
|
|
||||||
//guuid "github.com/google/uuid"
|
|
||||||
=======
|
|
||||||
"github.com/nspcc-dev/neo-go/pkg/interop/native/oracle"
|
"github.com/nspcc-dev/neo-go/pkg/interop/native/oracle"
|
||||||
>>>>>>> oracle_uuid
|
|
||||||
"github.com/nspcc-dev/neo-go/pkg/interop/native/std"
|
"github.com/nspcc-dev/neo-go/pkg/interop/native/std"
|
||||||
"github.com/nspcc-dev/neo-go/pkg/interop/runtime"
|
"github.com/nspcc-dev/neo-go/pkg/interop/runtime"
|
||||||
"github.com/nspcc-dev/neo-go/pkg/interop/storage"
|
"github.com/nspcc-dev/neo-go/pkg/interop/storage"
|
||||||
|
@ -24,11 +20,7 @@ func CreateNewComment(authorId string, postId string, text string) {
|
||||||
ctx := storage.GetContext()
|
ctx := storage.GetContext()
|
||||||
|
|
||||||
newComment := Comment{
|
newComment := Comment{
|
||||||
<<<<<<< HEAD
|
|
||||||
id: "1", // guuid.New().String(),
|
|
||||||
=======
|
|
||||||
id: "none",
|
id: "none",
|
||||||
>>>>>>> oracle_uuid
|
|
||||||
authorId: authorId,
|
authorId: authorId,
|
||||||
postId: postId,
|
postId: postId,
|
||||||
text: text,
|
text: text,
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
name: post
|
|
||||||
safemethods: []
|
|
||||||
supportedstandards: []
|
|
||||||
events: []
|
|
|
@ -66,11 +66,7 @@ func GetPost(postId string) Post {
|
||||||
ctx := storage.GetReadOnlyContext()
|
ctx := storage.GetReadOnlyContext()
|
||||||
data := storage.Get(ctx, postId)
|
data := storage.Get(ctx, postId)
|
||||||
if data == nil {
|
if data == nil {
|
||||||
<<<<<<< HEAD
|
|
||||||
panic("user not found")
|
|
||||||
=======
|
|
||||||
panic("post not found")
|
panic("post not found")
|
||||||
>>>>>>> oracle_uuid
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return std.Deserialize(data.([]byte)).(Post)
|
return std.Deserialize(data.([]byte)).(Post)
|
||||||
|
|
Loading…
Reference in a new issue