0.0.11-alpha: more sensible naming
Signed-off-by: T-Hax <>
This commit is contained in:
parent
d1d23f252a
commit
cd64bc0f63
5 changed files with 71 additions and 63 deletions
|
@ -14,7 +14,7 @@ async function main() {
|
|||
await core.connect(new providers.JsonRpcProvider("https://some.rpc.url"))
|
||||
|
||||
// Build tx (synchronous)
|
||||
const tx = core.buildDepositTransaction(core.getInstance("usdc", "100"))
|
||||
const tx = core.createDepositTransaction(core.getInstance("usdc", "100"))
|
||||
|
||||
// Print the tx to console
|
||||
console.log(tx)
|
||||
|
@ -69,7 +69,7 @@ async function main() {
|
|||
}))[0]
|
||||
|
||||
// Now build the proof
|
||||
const proof = await core.buildDepositProof(instance, relayer.properties, receiverAddress, note, {
|
||||
const proof = await core.createDepositProof(instance, relayer.properties, receiverAddress, note, {
|
||||
// Defaults after the function populates as a showcase
|
||||
// You can also leave all of this out and it will set it by itself
|
||||
checkNotesSpent: true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue