Skip to content

Commit 54ca1de

Browse files
nooxxloicttn
authored andcommitted
wip
1 parent e897830 commit 54ca1de

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

src/services/ada.ts

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)