Skip to content

Commit

Permalink
Merge pull request #900 from multiversx/transfer-esdt-nonexisting-acc
Browse files Browse the repository at this point in the history
  • Loading branch information
BiancaIalangi authored Feb 11, 2025
2 parents 2ed1acd + 6d48329 commit 662f1c1
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ require (
github.com/multiversx/mx-chain-core-go v1.2.22
github.com/multiversx/mx-chain-crypto-go v1.2.12-0.20240725071000-c3212540166f
github.com/multiversx/mx-chain-logger-go v1.0.15
github.com/multiversx/mx-chain-scenario-go v1.4.5-0.20240802080531-0906745c04b2
github.com/multiversx/mx-chain-scenario-go v1.4.5-0.20250211131210-ca58313a13f8
github.com/multiversx/mx-chain-storage-go v1.0.16-0.20240725070753-aa7fb322ebdf
github.com/multiversx/mx-chain-vm-common-go v1.5.17-0.20241021074004-c2bdb78da54a
github.com/multiversx/mx-components-big-int v1.0.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ github.com/multiversx/mx-chain-crypto-go v1.2.12-0.20240725071000-c3212540166f h
github.com/multiversx/mx-chain-crypto-go v1.2.12-0.20240725071000-c3212540166f/go.mod h1:9aSp//uBSvqFdzh4gvYISraoruhr1FCTXgPQalQ687k=
github.com/multiversx/mx-chain-logger-go v1.0.15 h1:HlNdK8etyJyL9NQ+6mIXyKPEBo+wRqOwi3n+m2QIHXc=
github.com/multiversx/mx-chain-logger-go v1.0.15/go.mod h1:t3PRKaWB1M+i6gUfD27KXgzLJJC+mAQiN+FLlL1yoGQ=
github.com/multiversx/mx-chain-scenario-go v1.4.5-0.20240802080531-0906745c04b2 h1:7/4jvB5DBQqKL4udY4RjcwHZ7sRH20fXM3Nj830Rv84=
github.com/multiversx/mx-chain-scenario-go v1.4.5-0.20240802080531-0906745c04b2/go.mod h1:5lkUsHiCCX1rJOx0d763OIlD85y85xCYU0Zlzasq6OM=
github.com/multiversx/mx-chain-scenario-go v1.4.5-0.20250211131210-ca58313a13f8 h1:70mdcqvonAsPdN00tU1r92+dGsgsPH8oA8r1PGIwTxI=
github.com/multiversx/mx-chain-scenario-go v1.4.5-0.20250211131210-ca58313a13f8/go.mod h1:sLKkfFGXK8EtnjBKmPcTZ0pbVGPsnUVFKOc2kWhGdFU=
github.com/multiversx/mx-chain-storage-go v1.0.16-0.20240725070753-aa7fb322ebdf h1:L9K7Xzq5SZz6k55R7HrafiRcU+c8/PqozJxys65G4bI=
github.com/multiversx/mx-chain-storage-go v1.0.16-0.20240725070753-aa7fb322ebdf/go.mod h1:ptvW/8r6bam55mVpeVZbyvvvydYM0DQwcPOH0W4Xyx8=
github.com/multiversx/mx-chain-vm-common-go v1.5.17-0.20241021074004-c2bdb78da54a h1:+D5GR9SkHTkKU6fIMZLdSQHeIzbDzOT6fSJfKBG80+g=
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
{
"comment": "simple ESDT transfer to nonexistent account, no SC",
"steps": [
{
"step": "setState",
"accounts": {
"address:A": {
"nonce": "0",
"balance": "0x1000000000",
"esdt": {
"str:TOK-123456": "150"
}
}
}
},
{
"step": "transfer",
"id": "1",
"tx": {
"from": "address:A",
"to": "address:B",
"esdtValue": [
{
"tokenIdentifier": "str:TOK-123456",
"value": "100"
}
],
"gasLimit": "0x100000000",
"gasPrice": "0x01"
}
},
{
"step": "checkState",
"id": "check-1",
"comment": "check after tx 1",
"accounts": {
"address:A": {
"nonce": "1",
"balance": "0xf00000000",
"esdt": {
"str:TOK-123456": "50"
},
"storage": {},
"code": ""
},
"address:B": {
"nonce": "0",
"esdt": {
"str:TOK-123456": "100"
},
"storage": {},
"code": ""
}
}
},
{
"step": "transfer",
"id": "2",
"tx": {
"from": "address:A",
"to": "address:B",
"esdtValue": [
{
"tokenIdentifier": "str:TOK-123456",
"value": "50"
}
],
"gasLimit": "0x100000000",
"gasPrice": "0x01"
}
},
{
"step": "checkState",
"id": "check-2",
"comment": "check after tx 2",
"accounts": {
"address:A": {
"nonce": "2",
"balance": "0xe00000000",
"esdt": {
"str:TOK-123456": "0"
},
"storage": {},
"code": ""
},
"address:B": {
"nonce": "0",
"esdt": {
"str:TOK-123456": "150"
},
"storage": {},
"code": ""
}
}
}
]
}

0 comments on commit 662f1c1

Please sign in to comment.