File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed
Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -82,19 +82,20 @@ export class AdaService extends Service {
8282 const ttl = currentSlot + 7200 ;
8383 txBuilder . set_ttl ( ttl ) ;
8484
85- const addresses = await this . client . addresses ( walletAddress ) ;
86-
87- // Add output
88- txBuilder . add_output (
89- CardanoWasm . TransactionOutput . new (
90- wasmWalletAddress ,
91- CardanoWasm . Value . new ( CardanoWasm . BigNum . from_str ( addresses . amount [ 0 ] . quantity . toString ( ) ) ) ,
92- ) ,
93- ) ;
85+ // const addresses = await this.client.addresses(walletAddress);
86+ //
87+ // // Add output
88+ // txBuilder.add_output(
89+ // CardanoWasm.TransactionOutput.new(
90+ // wasmWalletAddress,
91+ // CardanoWasm.Value.new(CardanoWasm.BigNum.from_str(addresses.amount[0].quantity.toString())),
92+ // ),
93+ // );
9494
9595 // Add delegation (stake registration + stake delegation certificates)
9696 const poolKeyHash = CardanoWasm . Ed25519KeyHash . from_hex ( poolHash ) ;
9797 const stakeCredentials = baseWalletAddress . stake_cred ( ) ;
98+ console . log ( stakeCredentials ) ;
9899 const certificates = CardanoWasm . Certificates . new ( ) ;
99100 const stakeRegistration = CardanoWasm . StakeRegistration . new ( stakeCredentials ) ;
100101 const stakeDelegation = CardanoWasm . StakeDelegation . new ( stakeCredentials , poolKeyHash ) ;
You can’t perform that action at this time.
0 commit comments