dapp/src/components/TestComponent.js
// now anyone can call the foo func in client contract 
now anyone can call the foo func in client contract
now anyone can call the foo func in client contract
async function foo() {
        await clientContractInstance.methods.foo().call().then(res=>{
                console.log(res)
        });
    }
async function foo ( ) { await clientContractInstance . methods . foo ( ) . call ( ) . then ( res => { console . log ( res ) } ) ; }
now anyone can call the foo func in client contract
now anyone can call the foo func in client contract