Skip to content

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

Answered by wpaulino
ConorOkus asked this question in Help

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

You must be logged in to vote
3 replies
@ConorOkus

ConorOkus Mar 27, 2023
Maintainer Author

@tnull

tnull Mar 28, 2023
Collaborator

@ConorOkus

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