Skip to content

Commit 645cc1d

Browse files
committedMay 16, 2024·
feat: transfer 1 xDAI as initial funding after creating safe
1 parent 773168a commit 645cc1d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎operate/cli.py

+5
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,11 @@ async def _create_safe(request: Request) -> t.List[t.Dict]:
424424
chain_type=chain_type,
425425
owner=data.get("owner"),
426426
)
427+
wallet.transfer(
428+
to=t.cast(str, wallet.safe),
429+
amount=int(1e18),
430+
chain_type=chain_type,
431+
)
427432
return JSONResponse(content={"safe": wallet.safe, "message": "Safe created!"})
428433

429434
@app.put("/api/wallet/safe")

0 commit comments

Comments
 (0)
Please sign in to comment.