import { LibSdbTypes } from "../../types" ; import { decode as decodeValue } from "./value" ; import { BN } from "bn.js" ; export function decode ( position , detail , stack ) { if ( position !== null && position >= 0 && position < stack . length ) { return decodeValue ( detail , stack [ position ] ) ; } else { return "" ; } }