Skip to content

Commit

Permalink
use new approach to instantiate address
Browse files Browse the repository at this point in the history
  • Loading branch information
popenta committed Mar 28, 2024
1 parent 316e439 commit be4ecc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/smartcontracts/smartContract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export class SmartContract implements ISmartContract {
* @param nonce The owner nonce used for the deployment transaction
*/
static computeAddress(owner: IAddress, nonce: INonce): IAddress {
const deployer = new Address(owner.bech32());
const deployer = Address.fromBech32(owner.bech32());
const addressComputer = new AddressComputer();
return addressComputer.computeContractAddress(deployer, BigInt(nonce.valueOf()));
}
Expand Down

0 comments on commit be4ecc3

Please sign in to comment.