Skip to content

Return a ShutdownScript when using ShutdownScript.new_witness_program (Kotlin/Java) #2129

Answered by wpaulino
ConorOkus asked this question in Help
Discussion options

You must be logged in to vote

It returns Result_ShutdownScriptInvalidShutdownScriptZ because it can fail. I'm not familiar with Kotlin, but you'd need to check if the call failed or not to get a ShutdownScript out of it.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ConorOkus
Comment options

ConorOkus Mar 27, 2023
Maintainer Author

@tnull
Comment options

tnull Mar 28, 2023
Collaborator

@ConorOkus
Comment options

ConorOkus Apr 4, 2023
Maintainer Author

Answer selected by ConorOkus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants