Closed actuallymentor closed 3 months ago
Please let me know if I can help with this. I'm going to give up on this sdk for now. I'm not managing to get any transactions to go through. For anyone landing here from Google, I recommend you import { SplitV1Client } from '@0xsplits/splits-sdk'
if you are using a V1 splits.
But after that I run continuously into errors so can't help post that point.
Hi @actuallymentor , thanks for the notes. Will get the docs cleaned up.
We accidentally published an alpha test version to npm. Have gone ahead and undone that. That was why the docs weren't matching up with the sdk. Thanks for flagging that for us!
I think with the proper version it should be working correctly, or giving more helpful error messages. But can help debug if you are still running into issues.
Hello team!
I'm trying to get the sdk to work, but the documentation is confusing and seems to be full of errors. Due to the docs being unstable I am not sure if the contract reversions I am encountering are due to errors on my part or the sdk being broken. Could you please clarify if the examples below are intentional (and I am misunderstanding something fundamental) or whether I should consider these docs experimental/broken?
Aside from the below, the
new SplitsClient
now seems to return an object with a syntax that does not track with the docs, I had toconst { splitV2: client } = new SplitsClient
in order to get it to work.Example use of
;
instead of,
here:Example use of
{}
for an array instead of[]
here: