0

I would like to access the value of a Drizzle ContractData method: this outputs: 1000000000:

          <ContractData
            contract={name}
            method="getValue"
          />

Now, I need this value for further processing, i.e. I need it as value on the sendArgs of another element.

This does not work:

          <ContractForm
            contract={name}
            method="pay"
            sendArgs={{
              from: this.props.store.getState().accounts[0],
              value: (
                <ContractData
                  contract={address}
                  method="subscription"
                  render={v => v}
                />
              )
            }}
          />

Any idea, how I could solve the problem?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.