removeMetadataPairIfExists method
void
removeMetadataPairIfExists({
- required Transaction tx,
- required dynamic blobObject,
- required String key,
Build a transaction that removes a metadata key-value pair if it exists (does not abort if absent).
Corresponds to TS blob::removeMetadataPairIfExists() Move call.
Implementation
void removeMetadataPairIfExists({
required Transaction tx,
required dynamic blobObject,
required String key,
}) {
tx.moveCall(
'$walrusPackageId::blob::remove_metadata_pair_if_exists',
arguments: [blobObject, tx.pure.string(key)],
);
}