threefoldtech / tfchain_graphql

Graphql for TFchain
Apache License 2.0
2 stars 3 forks source link

The contractUpdated event handler does not update the previous deployment hash and data. #141

Closed sameh-farouk closed 7 months ago

sameh-farouk commented 7 months ago

In the contractUpdated event handler, the deployment hash and data from the original contract are left intact.

https://github.com/threefoldtech/tfchain_graphql/blob/64469acbd0f568abb4480bfcfe1586f6fa9ba502/src/mappings/contracts.ts#L179-L196

Graphql UI and Gridprxoy will report the old deployment hash which won't match updated deployment hash on chain

sameh-farouk commented 7 months ago

duplicated #142