File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
modules/sdk-coin-ada/src/lib Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -414,8 +414,12 @@ export abstract class TransactionBuilder extends BaseTransactionBuilder {
414414 const vkey = CardanoWasm . Vkey . new ( CardanoWasm . PublicKey . from_bytes ( Buffer . from ( signature . publicKey . pub , 'hex' ) ) ) ;
415415 const ed255Sig = CardanoWasm . Ed25519Signature . from_bytes ( signature . signature ) ;
416416 vkeyWitnesses . add ( CardanoWasm . Vkeywitness . new ( vkey , ed255Sig ) ) ;
417+ // Restoring the behaviour from the original buildImplementation
418+ if ( refreshSignatures ) {
419+ this . _transaction . signature . push ( signature . signature . toString ( 'hex' ) ) ;
420+ }
417421 } ) ;
418- if ( vkeyWitnesses . len ( ) === 0 ) {
422+ if ( ! refreshSignatures && vkeyWitnesses . len ( ) === 0 ) {
419423 const prv = CardanoWasm . PrivateKey . generate_ed25519 ( ) ;
420424 const vkeyWitness = CardanoWasm . make_vkey_witness ( txHash , prv ) ;
421425 vkeyWitnesses . add ( vkeyWitness ) ;
You can’t perform that action at this time.
0 commit comments