Skip to content

Commit

Permalink
update events of bucket (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
AstaFrode authored Nov 24, 2023
1 parent 3d8226c commit 506f73f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chain/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ func (c *chainClient) RetrieveEvent_FileBank_CreateBucket(blockhash types.Hash)
vf := reflect.ValueOf(v.Value)
if vf.Len() > 0 {
allValue := fmt.Sprintf("%v", vf.Index(0))
if strings.Contains(v.Name, "AccountId32.acc") {
if strings.Contains(v.Name, "AccountId32.operator") {
temp := strings.Split(allValue, "] ")
puk := make([]byte, types.AccountIDLen)
for _, v := range temp {
Expand Down Expand Up @@ -630,7 +630,7 @@ func (c *chainClient) RetrieveEvent_FileBank_DeleteBucket(blockhash types.Hash)
vf := reflect.ValueOf(v.Value)
if vf.Len() > 0 {
allValue := fmt.Sprintf("%v", vf.Index(0))
if strings.Contains(v.Name, "AccountId32.acc") {
if strings.Contains(v.Name, "AccountId32.operator") {
temp := strings.Split(allValue, "] ")
puk := make([]byte, types.AccountIDLen)
for _, v := range temp {
Expand Down
3 changes: 3 additions & 0 deletions example/example.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ import (
var MY_MNEMONIC = "bottom drive obey lake curtain smoke basket hold race lonely fit walk"

var RPC_ADDRS = []string{
//devnet
"wss://devnet-rpc.cess.cloud/ws/",
//testnet
"wss://testnet-rpc0.cess.cloud/ws/",
"wss://testnet-rpc1.cess.cloud/ws/",
"wss://testnet-rpc2.cess.cloud/ws/",
Expand Down

0 comments on commit 506f73f

Please sign in to comment.