File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import (
1212 "github.com/LumeraProtocol/sdk-go/blockchain"
1313 lumerasdk "github.com/LumeraProtocol/sdk-go/client"
1414 sdkcrypto "github.com/LumeraProtocol/sdk-go/internal/crypto"
15+ "github.com/LumeraProtocol/sdk-go/types"
1516)
1617
1718func expandPath (p string ) string {
@@ -92,6 +93,18 @@ func main() {
9293 fmt .Printf (" Type: %s\n " , action .Type )
9394 fmt .Printf (" State: %s\n " , action .State )
9495 fmt .Printf (" Price: %s\n " , action .Price )
96+
97+ if action .Metadata != nil {
98+ switch action .Metadata .Type () {
99+ case types .ActionTypeCascade :
100+ cascadeMeta := action .Metadata .(* types.CascadeMetadata )
101+ fmt .Println ("FileName:" , cascadeMeta .FileName )
102+ fmt .Println ("Public:" , cascadeMeta .Public )
103+ case types .ActionTypeSense :
104+ senseMeta := action .Metadata .(* types.SenseMetadata )
105+ fmt .Println ("DataHash:" , senseMeta .DataHash )
106+ }
107+ }
95108 return
96109 }
97110
You can’t perform that action at this time.
0 commit comments