Skip to content

Commit

Permalink
Fix issue with add abi (#291)
Browse files Browse the repository at this point in the history
* Fix issue with add abi

* Naming change

* Fix route
  • Loading branch information
phanigovindaraju authored Aug 28, 2024
1 parent 107d769 commit 76910d0
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/fireblocks-sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2009,7 +2009,7 @@ export class FireblocksSDK {
* @returns {ContractWithABIDto}
*/
public async fetchOrScrapeABI(baseAssetId: string, contractAddress: string): Promise<ContractWithABIDto> {
return await this.apiClient.issuePostRequest(`/v1/contracts/fetch-abi`, {
return await this.apiClient.issuePostRequest(`/v1/tokenization/contracts/fetch-abi`, {
baseAssetId,
contractAddress
});
Expand All @@ -2019,13 +2019,17 @@ export class FireblocksSDK {
* Save contract ABI for the tenant
* @param baseAssetId
* @param contractAddress
* @param abi
* @param name
*
* @returns {ContractWithABIDto}
*/
public async addABI(baseAssetId: string, contractAddress: string): Promise<ContractWithABIDto> {
return await this.apiClient.issuePostRequest(`/v1/contracts/abi`, {
public async saveABI(baseAssetId: string, contractAddress: string, abi: AbiFunction[], name?: string): Promise<ContractWithABIDto> {
return await this.apiClient.issuePostRequest(`/v1/tokenization/contracts/abi`, {
baseAssetId,
contractAddress
contractAddress,
abi,
name
});
}

Expand Down

0 comments on commit 76910d0

Please sign in to comment.