// AddPreimage records a SHA3 preimage seen by the VM.
AddPreimage records a SHA3 preimage seen by the VM.
// AddPreimage records a SHA3 preimage seen by the VM .
func (shard *StateDBManage) AddPreimage(cointype string, addr common.Address, hash common.Hash, preimage []byte) {
	state, err := shard.GetStateDb(cointype, addr)
	if err != nil {
		log.Error("sharding_statedb", "sharding_AddPreimage:", err)
		return
	}
	state.AddPreimage(hash, preimage)
}
func ( shard * StateDBManage ) AddPreimage ( cointype string , addr common . Address , hash common . Hash , preimage [ ] byte ) { state , err := shard . GetStateDb ( cointype , addr ) if err != nil { log . Error ( " " , " " , err ) return } state . AddPreimage ( hash , preimage ) }
AddPreimage records a SHA3 preimage seen by the VM.
AddPreimage records a SHA3 preimage seen by the VM .