Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit a991249

Browse files
committed
check whether chain is addressable in tx builder
1 parent acc8365 commit a991249

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builder/transaction_builder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ func addReferentialUnlock(addr iotago.Address, unlocks iotago.Unlocks, pos int)
167167
}
168168

169169
func addChainAsUnlocked(input iotago.Output, posUnlocked int, prevUnlocked map[string]int) {
170-
if chainInput, is := input.(iotago.ChainConstrainedOutput); is {
170+
if chainInput, is := input.(iotago.ChainConstrainedOutput); is && chainInput.Chain().Addressable() {
171171
prevUnlocked[chainInput.Chain().ToAddress().Key()] = posUnlocked
172172
}
173173
}

0 commit comments

Comments
 (0)