getNormalizedMoveModulesByPackage method

Future<SuiMoveNormalizedModules> getNormalizedMoveModulesByPackage(
  1. String packageId
)

Implementation

Future<SuiMoveNormalizedModules> getNormalizedMoveModulesByPackage(
  String packageId
) async {
  var result = await client.request(
    'sui_getNormalizedMoveModulesByPackage',
    [packageId]
  );
  SuiMoveNormalizedModules modules = <String, SuiMoveNormalizedModule>{};
  if(result is Map) {
    for(var key in result.keys){
      modules[key] = SuiMoveNormalizedModule.fromJson(result[key]);
    }
  }
  return modules;
}