Skip to content

Commit 9bc98a3

Browse files
authored
CI: Update branches for workflows (#1569)
* CI: Update branches for workflows * deps: Update gsrpc lib to v4.0.11 * tests: Update weight in API test * deps: Update gsrpc lib to v4.0.12 * proxy: Update proxy events and calls
1 parent 10aaef5 commit 9bc98a3

File tree

9 files changed

+19
-17
lines changed

9 files changed

+19
-17
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# build workflow builds docker images, pushes images to docker hub and updates swagger API
22
on:
33
push:
4-
branches: [develop, master, v1.4.0]
4+
branches: [main]
55
name: Build
66
jobs:
77
build:

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# lint workflow runs golangci-lint, re generate swagger api and checks for any diffs
22
on:
33
push:
4-
branches: [develop, master]
4+
branches: [main]
55
pull_request:
66
name: Checks
77
jobs:

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# test works flow run unit, integration and testworld tests parallely in 4 jobs
22
on:
33
push:
4-
branches: [develop, master]
4+
branches: [main]
55
pull_request:
66
name: Tests
77
jobs:

centchain/api_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ func TestApi_dispatcherRunnerFunc(t *testing.T) {
668668
assert.NoError(t, err)
669669

670670
err = enc.Encode(types.DispatchInfo{
671-
Weight: 123,
671+
Weight: types.NewWeight(types.NewUCompactFromUInt(123), types.NewUCompactFromUInt(345)),
672672
Class: types.DispatchClass{
673673
IsNormal: true,
674674
},
@@ -768,7 +768,7 @@ func TestApi_dispatcherRunnerFunc_ed25519Signature(t *testing.T) {
768768
assert.NoError(t, err)
769769

770770
err = enc.Encode(types.DispatchInfo{
771-
Weight: 123,
771+
Weight: types.NewWeight(types.NewUCompactFromUInt(123), types.NewUCompactFromUInt(345)),
772772
Class: types.DispatchClass{
773773
IsNormal: true,
774774
},
@@ -1011,7 +1011,7 @@ func TestApi_dispatcherRunnerFunc_EventDecodeError(t *testing.T) {
10111011
assert.NoError(t, err)
10121012

10131013
err = enc.Encode(types.DispatchInfo{
1014-
Weight: 123,
1014+
Weight: types.NewWeight(types.NewUCompactFromUInt(123), types.NewUCompactFromUInt(345)),
10151015
Class: types.DispatchClass{
10161016
IsNormal: true,
10171017
},
@@ -1109,7 +1109,7 @@ func TestApi_dispatcherRunnerFunc_FailedExtrinsic(t *testing.T) {
11091109
assert.NoError(t, err)
11101110

11111111
err = enc.Encode(types.DispatchInfo{
1112-
Weight: 123,
1112+
Weight: types.NewWeight(types.NewUCompactFromUInt(123), types.NewUCompactFromUInt(345)),
11131113
Class: types.DispatchClass{
11141114
IsNormal: true,
11151115
},

centchain/test_client.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ func (f *TestClient) SubmitAndWait(ctx context.Context, senderKrp signature.Keyr
9999
if err == nil {
100100
return blockHash, nil
101101
}
102+
103+
log.Errorf("Couldn't submit extrinsic: %s", err)
102104
}
103105
}
104106
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ require (
77
github.com/Masterminds/semver v1.5.0
88
github.com/centrifuge/centrifuge-protobufs v1.0.0
99
github.com/centrifuge/chain-custom-types v1.0.1
10-
github.com/centrifuge/go-substrate-rpc-client/v4 v4.0.9
10+
github.com/centrifuge/go-substrate-rpc-client/v4 v4.0.12
1111
github.com/centrifuge/gocelery/v2 v2.0.0-20210312150236-4ff19a2b741d
1212
github.com/centrifuge/precise-proofs v1.0.0
1313
github.com/common-nighthawk/go-figure v0.0.0-20200609044655-c4b36f998cf2

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ github.com/centrifuge/chain-custom-types v1.0.1 h1:BupYn3o/hpjcAq7+MupyXJ6T1qYAW
130130
github.com/centrifuge/chain-custom-types v1.0.1/go.mod h1:hrD9djuAUOJXxV6iYv0Nexw69V/ywk38pTT4waJaakw=
131131
github.com/centrifuge/go-merkle v0.0.0-20190727075423-0ac78bbbc01b h1:TPvvMcGAc3TVBVgQ4XYYEWTXxYls8YuylZ8JzrVxPzc=
132132
github.com/centrifuge/go-merkle v0.0.0-20190727075423-0ac78bbbc01b/go.mod h1:0voJY6Qzxvr2S0LeDSFQiCnJzGq5gORg2SwCmn8602I=
133-
github.com/centrifuge/go-substrate-rpc-client/v4 v4.0.9 h1:MvrYFKxjG7QYvL3oiVFlUktAr9fjNeWWCb+x5XVyV7A=
134-
github.com/centrifuge/go-substrate-rpc-client/v4 v4.0.9/go.mod h1:5g1oM4Zu3BOaLpsKQ+O8PAv2kNuq+kPcA1VzFbsSqxE=
133+
github.com/centrifuge/go-substrate-rpc-client/v4 v4.0.12 h1:DCYWIBOalB0mKKfUg2HhtGgIkBbMA1fnlnkZp7fHB18=
134+
github.com/centrifuge/go-substrate-rpc-client/v4 v4.0.12/go.mod h1:5g1oM4Zu3BOaLpsKQ+O8PAv2kNuq+kPcA1VzFbsSqxE=
135135
github.com/centrifuge/gocelery/v2 v2.0.0-20210312150236-4ff19a2b741d h1:4OIGVat6mHenBP2yHVDQjOtip2+jNx7amsUJl2bOJN4=
136136
github.com/centrifuge/gocelery/v2 v2.0.0-20210312150236-4ff19a2b741d/go.mod h1:q6PvyLLCu1IQcE2dFv8advWprzY5b5GtZYRU/bH9nWE=
137137
github.com/centrifuge/precise-proofs v1.0.0 h1:hcXSK2d5aPEZUa09p+aoyw9ofKI6Twip+UMIx+sJKYc=

identity/v2/test_utils.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,13 @@ func getAnonymousProxyCreatedByAccount(
113113
originKrp signature.KeyringPair,
114114
events *centchain.Events,
115115
) (*types.AccountID, error) {
116-
if len(events.Proxy_AnonymousCreated) == 0 {
116+
if len(events.Proxy_PureCreated) == 0 {
117117
return nil, errors.New("no 'AnonymousCreated' events")
118118
}
119119

120-
for _, event := range events.Proxy_AnonymousCreated {
120+
for _, event := range events.Proxy_PureCreated {
121121
if bytes.Equal(event.Who.ToBytes(), originKrp.PublicKey) {
122-
return &event.Anonymous, nil
122+
return &event.Pure, nil
123123
}
124124
}
125125

@@ -322,7 +322,7 @@ func getCreateAnonymousProxyCallCreationFn(
322322
return func(meta *types.Metadata) (*types.Call, error) {
323323
call, err := types.NewCall(
324324
meta,
325-
proxy.ProxyAnonymous,
325+
proxy.ProxyCreatePure,
326326
pt,
327327
delay,
328328
index,

pallets/proxy/api.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ const (
2727
const (
2828
PalletName = "Proxy"
2929

30-
ProxyCall = PalletName + ".proxy"
31-
ProxyAdd = PalletName + ".add_proxy"
32-
ProxyAnonymous = PalletName + ".anonymous"
30+
ProxyCall = PalletName + ".proxy"
31+
ProxyAdd = PalletName + ".add_proxy"
32+
ProxyCreatePure = PalletName + ".create_pure"
3333

3434
ProxiesStorageName = "Proxies"
3535
)

0 commit comments

Comments
 (0)