My truffle-config.js
has
const { alice } = require('./scripts/sandbox/accounts');
module.exports = {
contracts_directory: "./contracts/main",
networks: {
development: {
host: "http://localhost",
port: 8732,
network_id: "*",
secretKey: alice.sk,
type: "tezos"
},
and my test has
const { networks } = require('./../truffle-config');
networks.development.secretKey = charlie.sk;
tx = await contract_instance.register(bob.pkh);
But this function call/transaction is still originating from alice and not from charlie. How do I fix that? I would like to be able to change the caller throughout the unit test if that is possible.