decodeAccountsCreated function
List<CreateManagerReceipt>
decodeAccountsCreated(
- PredictConfig cfg,
- DecodableTransactionResult result
All AccountCreated receipts in result.
Implementation
List<CreateManagerReceipt> decodeAccountsCreated(
PredictConfig cfg, DecodableTransactionResult result) {
return _decodeAll(result, cfg.packages.account, 'account_events',
'AccountCreated', account_events.AccountCreated, (e) {
return CreateManagerReceipt(
accountId: normalizeSuiAddress(e['account_id'] as String),
wrapperId: normalizeSuiAddress(e['wrapper_id'] as String),
owner: normalizeSuiAddress(e['owner'] as String),
selfOwned: e['self_owned'] as bool,
);
});
}