// Apply a transaction by writing the states into memory.
// After you've finished, you MUST call CollapseContext.Flush() to actually write the states into the tree.
Apply a transaction by writing the states into memory.
After you've finished, you MUST call CollapseContext.Flush() to actually write the states into the tree.
// Apply a transaction by writing the states into memory . // After you ' ve finished you MUST call CollapseContext . Flush () to actually write the states into the tree .
func (c *CollapseContext) ApplyTransaction(block *Block, tx *Transaction) error {
	if err := applyTransaction(block, c, tx, &contractExecutorState{
		GasPayer: tx.Sender,
	}); err != nil {
		return err
	}
	return nil
}
func ( c * CollapseContext ) ApplyTransaction ( block * Block , tx * Transaction ) error { if err := applyTransaction ( block , c , tx , & contractExecutorState { GasPayer : tx . Sender , } ) ; err != nil { return err } return nil }
Apply a transaction by writing the states into memory.
Apply a transaction by writing the states into memory .