Store data from nested block of gutenberg

I had checked everywhere except the save function (see updated question). I updated it as follows:

<div {...blockProps}>
  <div className="ea-accordion-panel--heading">
    <RichText.Content tagName="h2" value={attributes.heading} />
  </div>
  <div className="ea-accordion-panel--content">
    <InnerBlocks.Content />
  </div>
</div>