r0gue-io / pop-drink

De-chained Ready-to-play ink! playground (customized for POP Network)
0 stars 0 forks source link

refactor: initialising pop drink session. #9

Open Daanvdplas opened 1 month ago

Daanvdplas commented 1 month ago

Taking inspiration from new_test().execute_with(|| { }), an improvement might be to define something similar in pop-drink which takes the session and contract details as parameters and then has a function for executing a closure, with the session and contract address as the closure parameters.

https://github.com/r0gue-io/pop-node/pull/300/files/bea0e9aa4b9f9e231b2be5ad25f974bf290913fc#r1778408231