Closed flux627 closed 5 years ago
This change allows users to pass in a type for the EosPayload.data property when defining their updaters/effects, which should correspond to the Blockchain contract action's struct:
EosPayload.data
interface AssetStruct { amount: number symbol: string } const apply = async (state: any, payload: EosPayload<AssetStruct>, blockInfo: BlockInfo) => { state.save({ amount: payload.data.amount, symbol: payload.data.symbol, }) }
This change allows users to pass in a type for the
EosPayload.data
property when defining their updaters/effects, which should correspond to the Blockchain contract action's struct: