You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return sui_ops.OpTxResult[NoObjects]{}, fmt.Errorf("failed to convert encoded call to TransactionCall: %w", err)
88
+
}
89
+
ifdeps.Signer==nil {
90
+
b.Logger.Infow("Skipping execution of UnregisterPool on TokenAdminRegistry as per no Signer provided", "CoinMetadataAddress", input.CoinMetadataAddress)
91
+
return sui_ops.OpTxResult[NoObjects]{
92
+
Digest: "",
93
+
PackageId: input.CCIPPackageId,
94
+
Objects: NoObjects{},
95
+
Call: call,
96
+
}, nil
97
+
}
98
+
81
99
opts:=deps.GetCallOpts()
82
100
opts.Signer=deps.Signer
83
-
tx, err:=contract.UnregisterPool(
101
+
tx, err:=contract.Bound().ExecuteTransaction(
84
102
b.GetContext(),
85
103
opts,
86
-
bind.Object{Id: input.StateObjectId},
87
-
input.CoinMetadataAddress,
104
+
encodedCall,
88
105
)
89
106
iferr!=nil {
90
-
return sui_ops.OpTxResult[NoObjects]{}, fmt.Errorf("failed to execute unregister pool: %w", err)
107
+
return sui_ops.OpTxResult[NoObjects]{}, fmt.Errorf("failed to execute UnregisterPool on TokenAdminRegistry: %w", err)
91
108
}
92
109
93
110
b.Logger.Infow("UnregisterPool on TokenAdminRegistry", "PackageId:", input.CCIPPackageId, "CoinMetadataAddress:", input.CoinMetadataAddress)
return sui_ops.OpTxResult[NoObjects]{}, fmt.Errorf("failed to convert encoded call to TransactionCall: %w", err)
151
+
}
152
+
ifdeps.Signer==nil {
153
+
b.Logger.Infow("Skipping execution of TransferAdminRole on TokenAdminRegistry as per no Signer provided", "CoinMetadataAddress", input.CoinMetadataAddress, "NewAdmin", input.NewAdmin)
154
+
return sui_ops.OpTxResult[NoObjects]{
155
+
Digest: "",
156
+
PackageId: input.CCIPPackageId,
157
+
Objects: NoObjects{},
158
+
Call: call,
159
+
}, nil
160
+
}
161
+
126
162
opts:=deps.GetCallOpts()
127
163
opts.Signer=deps.Signer
128
-
tx, err:=contract.TransferAdminRole(
164
+
tx, err:=contract.Bound().ExecuteTransaction(
129
165
b.GetContext(),
130
166
opts,
131
-
bind.Object{Id: input.StateObjectId},
132
-
input.CoinMetadataAddress,
133
-
input.NewAdmin,
167
+
encodedCall,
134
168
)
135
169
iferr!=nil {
136
-
return sui_ops.OpTxResult[NoObjects]{}, fmt.Errorf("failed to execute transfer admin role: %w", err)
170
+
return sui_ops.OpTxResult[NoObjects]{}, fmt.Errorf("failed to execute TransferAdminRole on TokenAdminRegistry: %w", err)
137
171
}
138
172
139
173
b.Logger.Infow("TransferAdminRole on TokenAdminRegistry", "PackageId:", input.CCIPPackageId, "CoinMetadataAddress:", input.CoinMetadataAddress, "NewAdmin:", input.NewAdmin)
return sui_ops.OpTxResult[NoObjects]{}, fmt.Errorf("failed to convert encoded call to TransactionCall: %w", err)
213
+
}
214
+
ifdeps.Signer==nil {
215
+
b.Logger.Infow("Skipping execution of AcceptAdminRole on TokenAdminRegistry as per no Signer provided", "CoinMetadataAddress", input.CoinMetadataAddress)
216
+
return sui_ops.OpTxResult[NoObjects]{
217
+
Digest: "",
218
+
PackageId: input.CCIPPackageId,
219
+
Objects: NoObjects{},
220
+
Call: call,
221
+
}, nil
222
+
}
223
+
171
224
opts:=deps.GetCallOpts()
172
225
opts.Signer=deps.Signer
173
-
tx, err:=contract.AcceptAdminRole(
226
+
tx, err:=contract.Bound().ExecuteTransaction(
174
227
b.GetContext(),
175
228
opts,
176
-
bind.Object{Id: input.StateObjectId},
177
-
input.CoinMetadataAddress,
229
+
encodedCall,
178
230
)
179
231
iferr!=nil {
180
-
return sui_ops.OpTxResult[NoObjects]{}, fmt.Errorf("failed to execute accept admin role: %w", err)
232
+
return sui_ops.OpTxResult[NoObjects]{}, fmt.Errorf("failed to execute AcceptAdminRole on TokenAdminRegistry: %w", err)
181
233
}
182
234
183
235
b.Logger.Infow("AcceptAdminRole on TokenAdminRegistry", "PackageId:", input.CCIPPackageId, "CoinMetadataAddress:", input.CoinMetadataAddress)
0 commit comments