Skip to content

Commit

Permalink
Merge pull request #31 from SurfingNerd/docs
Browse files Browse the repository at this point in the history
docs
  • Loading branch information
SurfingNerd authored May 8, 2024
2 parents bb000a4 + 27bd4cd commit beb0d95
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 beb0d95

Please sign in to comment.