forAccountId method Null safety
- String accountId
Implementation
static XdrSCAddress forAccountId(String accountId) {
XdrSCAddress result =
XdrSCAddress(XdrSCAddressType.SC_ADDRESS_TYPE_ACCOUNT);
result.accountId =
XdrAccountID(KeyPair.fromAccountId(accountId).xdrPublicKey);
return result;
}