contract creation api
fix storageAt and stateAt