Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stripped version clientfixes #156

Draft
wants to merge 5 commits into
base: stripped_version
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions client-js/examples/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ const install = async () => {
const contractHash = findKeyFromAccountNamedKeys(
accountInfo,
`cep18_contract_hash_${tokenInfo.name}`
) as `hash-${string}`;
);

const contractPackageHash = findKeyFromAccountNamedKeys(
accountInfo,
`cep18_contract_package_${tokenInfo.name}`
) as `hash-${string}`;
);

console.log(`... Contract Hash: ${contractHash}`);
console.log(`... Contract Package Hash: ${contractPackageHash}`);
Expand Down
6 changes: 3 additions & 3 deletions client-js/examples/usage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ const run = async () => {
const contractHash = findKeyFromAccountNamedKeys(
accountInfo,
`cep18_contract_hash_${tokenInfo.name}`
) as `hash-${string}`;
);

const contractPackageHash = findKeyFromAccountNamedKeys(
accountInfo,
`cep18_contract_package_${tokenInfo.name}`
) as `hash-${string}`;
);

cep18.setContractHash(contractHash, contractPackageHash);
console.log(`... Contract Hash: ${contractHash}`);
Expand Down Expand Up @@ -94,7 +94,7 @@ const run = async () => {
// Get allowances
const allowances = await cep18.allowances(owner.publicKey, ali.publicKey);
console.log(
`...Allowances from ${owner.publicKey.toHex()} to ${ali.publicKey.toHex()} : ${allowances.toString()}`
`...Allowances from ${owner.publicKey.toFormattedString()} to ${ali.publicKey.toFormattedString()} : ${allowances.toString()}`
);

// Transfer tokens by allowances
Expand Down
4 changes: 2 additions & 2 deletions client-js/examples/usage2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ const run = async () => {
const contractHash = findKeyFromAccountNamedKeys(
accountInfo,
`cep18_contract_hash_${tokenInfo.name}`
) as `hash-${string}`;
);

const contractPackageHash = findKeyFromAccountNamedKeys(
accountInfo,
`cep18_contract_package_${tokenInfo.name}`
) as `hash-${string}`;
);

cep18.setContractHash(contractHash, contractPackageHash);
console.log(`... Contract Hash: ${contractHash}`);
Expand Down
Loading