fix(transaction):fixed if contract deployment address format validation

dev
neeboo 5 years ago
parent 6336e94dfe
commit 4673b58f3f
  1. 2
      packages/harmony-transaction/src/transaction.ts

@ -466,7 +466,7 @@ class Transaction {
HarmonyAddress.isValidBech32(address) ||
HarmonyAddress.isValidBech32TestNet(address)
) {
return getAddress(address).checksum;
return address === '0x' ? '0x' : getAddress(address).checksum;
} else {
throw new Error(`Address format is not supported`);
}

Loading…
Cancel
Save