Skip to content

Commit 28ce666

Browse files
upstream(ts-sdk): [ts sdk] Add new errors to ExecutionFailureStatus (#7610)
# Description of change Porting commit: MystenLabs/sui@477d2a4
1 parent 5bbafa8 commit 28ce666

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.changeset/small-icons-smash.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@iota/iota-sdk': minor
3+
---
4+
5+
Add new errors to ExecutionFailureStatus enum

sdk/typescript/src/bcs/effects.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,18 @@ const ExecutionFailureStatus = bcs.enum('ExecutionFailureStatus', {
106106
IotaMoveVerificationTimedout: null,
107107
SharedObjectOperationNotAllowed: null,
108108
InputObjectDeleted: null,
109+
ExecutionCancelledDueToSharedObjectCongestion: bcs.struct(
110+
'ExecutionCancelledDueToSharedObjectCongestion',
111+
{
112+
congestedObjects: bcs.vector(Address),
113+
},
114+
),
115+
AddressDeniedForCoin: bcs.struct('AddressDeniedForCoin', {
116+
address: Address,
117+
coinType: bcs.string(),
118+
}),
119+
CoinTypeGlobalPause: bcs.struct('CoinTypeGlobalPause', { coinType: bcs.string() }),
120+
ExecutionCancelledDueToRandomnessUnavailable: null,
109121
});
110122

111123
const ExecutionStatus = bcs.enum('ExecutionStatus', {

0 commit comments

Comments
 (0)