Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
SurfingNerd committed Apr 19, 2024
1 parent bb000a4 commit 27bd4cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/src/cryptoSol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ export class CryptoSol {
return new CryptoSol(contract);
}

/// Creates an instance if you already have a ClaimContract instance.
/// use static method fromContractAddress() for creating an instance from a contract address.
public constructor(public instance: ClaimContract) {
if (instance === undefined || instance === null) {
throw Error("Claim contract must be defined!!");
Expand Down Expand Up @@ -194,8 +196,6 @@ export class CryptoSol {
const bytes = await this.instance.prefixStr();
const buffer = hexToBuf(bytes);
return new TextDecoder("utf-8").decode(buffer);

//return stringToUTF8Hex
}

public async addBalance(dmdV3Address: string, value: string) {
Expand Down

0 comments on commit 27bd4cd

Please sign in to comment.