Skip to content

Commit

Permalink
[ts sdk] Add new errors to ExecutionFailureStatus (#19897)
Browse files Browse the repository at this point in the history
## Description 

Describe the changes or additions included in this PR.

## Test plan 

How did you test the new or updated feature?

---

## Release notes

Check each box that your changes affect. If none of the boxes relate to
your changes, release notes aren't required.

For each box you select, include information after the relevant heading
that describes the impact of your changes that a user might notice and
any actions they must take to implement updates.

- [ ] Protocol: 
- [ ] Nodes (Validators and Full nodes): 
- [ ] Indexer: 
- [ ] JSON-RPC: 
- [ ] GraphQL: 
- [ ] CLI: 
- [ ] Rust SDK:
- [ ] REST API:
  • Loading branch information
hayes-mysten authored Oct 17, 2024
1 parent c3562a3 commit 477d2a4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/small-icons-smash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@mysten/sui': minor
---

Add new errors to ExecutionFailureStatus enum
12 changes: 12 additions & 0 deletions sdk/typescript/src/bcs/effects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,18 @@ const ExecutionFailureStatus = bcs.enum('ExecutionFailureStatus', {
SuiMoveVerificationTimedout: null,
SharedObjectOperationNotAllowed: null,
InputObjectDeleted: null,
ExecutionCancelledDueToSharedObjectCongestion: bcs.struct(
'ExecutionCancelledDueToSharedObjectCongestion',
{
congestedObjects: bcs.vector(Address),
},
),
AddressDeniedForCoin: bcs.struct('AddressDeniedForCoin', {
address: Address,
coinType: bcs.string(),
}),
CoinTypeGlobalPause: bcs.struct('CoinTypeGlobalPause', { coinType: bcs.string() }),
ExecutionCancelledDueToRandomnessUnavailable: null,
});

const ExecutionStatus = bcs.enum('ExecutionStatus', {
Expand Down

0 comments on commit 477d2a4

Please sign in to comment.