Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gemfarm UI not allowing creation of new farm #101

Open
jasonpraful opened this issue Jun 7, 2022 · 1 comment
Open

Gemfarm UI not allowing creation of new farm #101

jasonpraful opened this issue Jun 7, 2022 · 1 comment

Comments

@jasonpraful
Copy link

jasonpraful commented Jun 7, 2022

The UI allows minting of a new token. However, it doesnt allow the creation of a new farm.

Throws the below error.
Note that the account doesn't exist and the same error occurs (with a different address) when using a different wallet.
EDIT: This doesn't occur when the 2 token addresses are different. it only happens when the addresses are the same

Transaction simulation failed: Error processing Instruction 0: custom program error: 0x0 
    Program farmL4xeBFVXJqtfxCzU9b28QACM7E2W2ctT6epAjvE invoke [1]
    Program log: Instruction: InitFarm
    Program 11111111111111111111111111111111 invoke [2]
    Program 11111111111111111111111111111111 success
    Program 11111111111111111111111111111111 invoke [2]
    Program 11111111111111111111111111111111 success
    Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [2]
    Program log: Instruction: InitializeAccount
    Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 3602 of 1361152 compute units
    Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success
    Program 11111111111111111111111111111111 invoke [2]
    Allocate: account Address { address: HFgZLwG14YPs44LzkMmjMHE29c6djKC6YQbkL9ZbKqc2, base: None } already in use
    Program 11111111111111111111111111111111 failed: custom program error: 0x0
    Program farmL4xeBFVXJqtfxCzU9b28QACM7E2W2ctT6epAjvE consumed 53194 of 1400000 compute units
    Program farmL4xeBFVXJqtfxCzU9b28QACM7E2W2ctT6epAjvE failed: custom program error: 0x0
sendEncodedTransaction @ index.browser.esm.js:7051
await in sendEncodedTransaction (async)
sendRawTransaction @ index.browser.esm.js:7014
ct @ index.js:1
sendAndConfirm @ index.js:1
await in sendAndConfirm (async)
(anonymous) @ index.js:16
rpc @ index.js:16
await in rpc (async)
(anonymous) @ gem-farm.client.js:189
s @ gem-farm.client.js:24
Promise.then (async)
u @ gem-farm.client.js:26
s @ gem-farm.client.js:24
Promise.then (async)
u @ gem-farm.client.js:26
s @ gem-farm.client.js:24
Promise.then (async)
u @ gem-farm.client.js:26
s @ gem-farm.client.js:24
Promise.then (async)
u @ gem-farm.client.js:26
(anonymous) @ gem-farm.client.js:27
s @ gem-farm.client.js:23
initFarm @ gem-farm.client.js:159
(anonymous) @ index.ts:42
d @ runtime.js:63
(anonymous) @ runtime.js:294
(anonymous) @ runtime.js:119
n @ asyncToGenerator.js:3
a @ asyncToGenerator.js:25
(anonymous) @ asyncToGenerator.js:32
(anonymous) @ asyncToGenerator.js:21
t @ index.ts:27
(anonymous) @ InitFarm.vue?4ffc:39
d @ runtime.js:63
(anonymous) @ runtime.js:294
(anonymous) @ runtime.js:119
n @ asyncToGenerator.js:3
a @ asyncToGenerator.js:25
(anonymous) @ asyncToGenerator.js:32
(anonymous) @ asyncToGenerator.js:21
(anonymous) @ InitFarm.vue?4ffc:38
(anonymous) @ InitFarm.vue?d1d8:35
(anonymous) @ runtime-dom.esm-bundler.js:1457
Un @ runtime-core.esm-bundler.js:6708
Hn @ runtime-core.esm-bundler.js:6717
r @ runtime-dom.esm-bundler.js:357
runtime-core.esm-bundler.js:6779 Proxy {logs: Array(15), programErrorStack: _t, stack: 'Error: failed to send transaction: Transaction sim…emfarm.gg/js/chunk-vendors.2a9e99a0.js:659:38040)', message: 'failed to send transaction: Transaction simulation…ocessing Instruction 0: custom program error: 0x0'}
Fn @ runtime-core.esm-bundler.js:6779
Wn @ runtime-core.esm-bundler.js:6757
(anonymous) @ runtime-core.esm-bundler.js:6720
Promise.catch (async)
Hn @ runtime-core.esm-bundler.js:6719
r @ runtime-dom.esm-bundler.js:357

@ilmoi
Copy link
Member

ilmoi commented Jun 8, 2022

yeh that's coz you can' put in 2 addresses that are the same. If you want to do a small and clean PR to the front-end I'll accept

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants