author liangqin.fan gmail import { Codec } from "as-scale-codec" ; import { seal_return } from "as-contract-runtime" ; export class ReturnData { static set < T extends Codec > ( v ) { const wbuf = v . toU8a ( ) ; seal_return ( 0 , wbuf . dataStart , wbuf . length ) ; } }