threefoldtech / tfchain_graphql

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

Gql doesn't sync with chain #135

Closed MohamedElmdary closed 9 months ago

MohamedElmdary commented 1 year ago

After updating a contract using grid3_client I tried to fetch all contracts again but got the old response over and over After some investigation we figured that the contracts updated on chain but didn't reflect back to graphql

image image

xmonader commented 1 year ago

can this be closed now it's all in sync now?

sameh-farouk commented 9 months ago

Update: this due to a bug introduced here (using wrong object name)

https://github.com/threefoldtech/tfchain_graphql/commit/05ed1a4f9a853fe914c1fb5624c88e94450c5a56

During process the contractUpdated event we updates the contract with the same saved deployment data and deployment hash instead of the new updated values. So both values are presisted although the processor has processed the contractUpdated event.

sameh-farouk commented 9 months ago

Deployment request: https://github.com/threefoldtech/tf_operations/issues/2265

sameh-farouk commented 9 months ago

Verified